[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / complex-promotion.c
bloba59bf718931b20bb32e9d5bc56a5c7391ddf4387
1 // RUN: %clang_cc1 %s -verify -fsyntax-only
2 // expected-no-diagnostics
4 float a;
6 int b[__builtin_classify_type(a + 1i) == 9 ? 1 : -1];
7 int c[__builtin_classify_type(1i + a) == 9 ? 1 : -1];
9 double d;
10 __typeof__ (d + 1i) e;
12 int f[sizeof(e) == 2 * sizeof(double) ? 1 : -1];
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];