llvm-project/clang/test/Sema/conversion-64-32.c

6 lines
186 B
C

// RUN: clang-cc -fsyntax-only -verify -Wshorten-64-to-32 -triple x86_64-apple-darwin %s
int test0(long v) {
return v; // expected-warning {{implicit cast loses integer precision}}
}