1 // RUN: %clang_cc1 -emit-llvm-only %s
6 double _Complex b
= 42;
11 _Complex
double bar(int);
12 void test(_Complex
double*);
13 void takecomplex(_Complex
double);
22 _Complex
double g1
, g2
;
32 double Gr
= __real g1
;
41 __complex__
int ci1
, ci2
;
69 __complex__
long long v
= 2;
73 float _Complex
t4(void);
76 float _Complex x
= t4();
90 double t7(double _Complex c
) {
91 return __builtin_fabs(__real__(c
));
95 __complex__
int *x
= &(__complex__
int){1};
98 const _Complex
double test9const
= 0;
99 _Complex
double test9func(void) { return test9const
; }
103 // Check for proper type promotion of conditional expression
104 char c
[(int)(sizeof(typeof((0 ? 2.0f
: (_Complex
double) 2.0f
))) - sizeof(_Complex
double))];
105 // Check for proper codegen
106 (0 ? 2.0f
: (_Complex
double) 2.0f
);
110 // Check for proper type promotion of conditional expression
111 char c
[(int)(sizeof(typeof((0 ? (_Complex
double) 2.0f
: 2.0f
))) - sizeof(_Complex
double))];
112 // Check for proper codegen
113 (0 ? (_Complex
double) 2.0f
: 2.0f
);