1static inline void f(void)
2{
3	__builtin_constant_p(0);
4}
5
6void foo(void)
7{
8	0 ? 0 : f();
9}
10
11void bar(void)
12{
13	1 ? f() : 0;
14}
15
16/*
17 * check-name: cond-err-expand.c
18 * check-command: test-linearize -Wno-decl $file
19 *
20 * check-error-start
21cond-err-expand.c:8:11: error: incompatible types in conditional expression (different base types):
22cond-err-expand.c:8:11:    int
23cond-err-expand.c:8:11:    void
24cond-err-expand.c:13:11: error: incompatible types in conditional expression (different base types):
25cond-err-expand.c:13:11:    void
26cond-err-expand.c:13:11:    int
27 * check-error-end
28 *
29 * check-output-ignore
30 * check-output-excludes: call.* __builtin_constant_p
31 */
32