Debian Codegraph @

clang/test/Sema/implicit-cast.c

raw
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 static char *test1(int cf) {
4 return cf ? "abc" : 0;
5 }
6 static char *test2(int cf) {
7 return cf ? 0 : "abc";
8 }
9
10 int 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 }