conditional.c revision 2202bce80fc72d067cbe67dc1512f7b45351fd31
1// RUN: clang -emit-llvm %s 2 3float test1(int cond, float a, float b) 4{ 5 return cond ? a : b; 6} 7double test2(int cond, float a, double b) 8{ 9 return cond ? a : b; 10} 11 12void f(); 13 14void test3(){ 15 1 ? f() : (void)0; 16} 17 18