188c1dfccf8c5d487408e3365c752ed24c867c7ceJohn McCall// RUN: %clang_cc1 -fsyntax-only -verify -Wsign-conversion %s 288c1dfccf8c5d487408e3365c752ed24c867c7ceJohn McCall 388c1dfccf8c5d487408e3365c752ed24c867c7ceJohn McCall// PR9345: make a subgroup of -Wconversion for signedness changes 488c1dfccf8c5d487408e3365c752ed24c867c7ceJohn McCall 588c1dfccf8c5d487408e3365c752ed24c867c7ceJohn McCallvoid test(int x) { 688c1dfccf8c5d487408e3365c752ed24c867c7ceJohn McCall unsigned t0 = x; // expected-warning {{implicit conversion changes signedness}} 788c1dfccf8c5d487408e3365c752ed24c867c7ceJohn McCall unsigned t1 = (t0 == 5 ? x : 0); // expected-warning {{operand of ? changes signedness}} 888c1dfccf8c5d487408e3365c752ed24c867c7ceJohn McCall} 9