[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / implicit-int-conversion.c
blob3d2d83c5c4ea3a697cda2b7b85ebab90c3484884
1 // RUN: %clang_cc1 %s -verify -Wconversion -Wno-implicit-int-conversion -DSMALL=char -DBIG=int -DNO_DIAG
2 // RUN: %clang_cc1 %s -verify -Wno-conversion -Wimplicit-int-conversion -DSMALL=char -DBIG=int
3 // RUN: %clang_cc1 %s -verify -Wconversion -Wno-implicit-float-conversion -DSMALL=float -DBIG=double -DNO_DIAG
4 // RUN: %clang_cc1 %s -verify -Wno-conversion -Wimplicit-float-conversion -DSMALL=float -DBIG=double
6 void f(void) {
7 SMALL a;
8 BIG b = 0;
9 a = b;
10 #ifndef NO_DIAG
11 // expected-warning@-2 {{implicit conversion}}
12 #else
13 // expected-no-diagnostics
14 #endif