complex-promotion.c 394 B

12345678910111213141516
  1. // RUN: %clang_cc1 %s -verify -fsyntax-only
  2. // expected-no-diagnostics
  3. float a;
  4. int b[__builtin_classify_type(a + 1i) == 9 ? 1 : -1];
  5. int c[__builtin_classify_type(1i + a) == 9 ? 1 : -1];
  6. double d;
  7. __typeof__ (d + 1i) e;
  8. int f[sizeof(e) == 2 * sizeof(double) ? 1 : -1];
  9. int g;
  10. int h[__builtin_classify_type(g + 1.0i) == 9 ? 1 : -1];
  11. int i[__builtin_classify_type(1.0i + a) == 9 ? 1 : -1];