expressions: make assign_expression() take an op argument
[smatch.git] / validation / cond-err-expand.c
blob93bbac153848160255f7ae199beec55f6aa58380
1 static inline void f(void)
3 __builtin_constant_p(0);
6 void foo(void)
8 0 ? 0 : f();
11 void bar(void)
13 1 ? f() : 0;
17 * check-name: cond-err-expand.c
18 * check-command: test-linearize -Wno-decl $file
20 * check-error-start
21 cond-err-expand.c:8:11: error: incompatible types in conditional expression (different base types)
22 cond-err-expand.c:13:11: error: incompatible types in conditional expression (different base types)
23 * check-error-end
25 * check-output-ignore
26 * check-excludes: call.* __builtin_constant_p