[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Sema / sign-conversion.c
blob4b1ee7542158d085dca61ed50580b1b24cdd30da
1 // RUN: %clang_cc1 -fsyntax-only -verify -Wsign-conversion %s
3 // PR9345: make a subgroup of -Wconversion for signedness changes
5 void test(int x) {
6 unsigned t0 = x; // expected-warning {{implicit conversion changes signedness}}
7 unsigned t1 = (t0 == 5 ? x : 0); // expected-warning {{operand of ? changes signedness}}