1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify -Wsign-conversion %s
2*f4a2713aSLionel Sambuc
3*f4a2713aSLionel Sambuc // PR9345: make a subgroup of -Wconversion for signedness changes
4*f4a2713aSLionel Sambuc
test(int x)5*f4a2713aSLionel Sambuc void test(int x) {
6*f4a2713aSLionel Sambuc unsigned t0 = x; // expected-warning {{implicit conversion changes signedness}}
7*f4a2713aSLionel Sambuc unsigned t1 = (t0 == 5 ? x : 0); // expected-warning {{operand of ? changes signedness}}
8*f4a2713aSLionel Sambuc }
9