14 lines · c
1// RUN: %clang_cc1 -fsyntax-only -verify %s2 3static char *test1(int cf) {4 return cf ? "abc" : 0;5}6static char *test2(int cf) {7 return cf ? 0 : "abc";8}9 10int baz(void) {11 int f;12 return ((void)0, f = 1.4f); // expected-warning {{implicit conversion from 'float' to 'int' changes value from 1.4 to 1}}13}14