Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGen / conditional-gnu-ext.c
blob8fb364449155366c868660d12217ea94369a9c9f
1 // RUN: %clang_cc1 -emit-llvm %s -o %t
2 // PR1824
4 int foo(int x, short y) {
5 return x ?: y;
8 float test(float x, int Y) {
9 return Y != 0 ? : x;
12 extern void abort(void);
13 void test1 (void) {
14 char x[1];
15 char *y = x ? : 0;
17 if (x != y)
18 abort();
21 _Complex int getComplex(_Complex int val) {
22 static int count;
23 if (count++)
24 abort();
25 return val;
28 _Complex int complx(void) {
29 _Complex int cond;
30 _Complex int rhs;
32 return getComplex(1+2i) ? : rhs;