xref: /minix3/external/bsd/llvm/dist/clang/test/Sema/complex-promotion.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2 // expected-no-diagnostics
3 
4 float a;
5 
6 int b[__builtin_classify_type(a + 1i) == 9 ? 1 : -1];
7 int c[__builtin_classify_type(1i + a) == 9 ? 1 : -1];
8 
9 double d;
10 __typeof__ (d + 1i) e;
11 
12 int f[sizeof(e) == 2 * sizeof(double) ? 1 : -1];
13 
14 int g;
15 int h[__builtin_classify_type(g + 1.0i) == 9 ? 1 : -1];
16 int i[__builtin_classify_type(1.0i + a) == 9 ? 1 : -1];
17