blob: a59bf718931b20bb32e9d5bc56a5c7391ddf4387 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 %s -verify -fsyntax-only
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Anders Carlsson5b1f3f02008-12-10 23:30:05 +00003
4float a;
5
6int b[__builtin_classify_type(a + 1i) == 9 ? 1 : -1];
7int c[__builtin_classify_type(1i + a) == 9 ? 1 : -1];
8
9double d;
10__typeof__ (d + 1i) e;
11
12int f[sizeof(e) == 2 * sizeof(double) ? 1 : -1];
Anders Carlsson5abfe2c2008-12-10 23:57:51 +000013
14int g;
15int h[__builtin_classify_type(g + 1.0i) == 9 ? 1 : -1];
16int i[__builtin_classify_type(1.0i + a) == 9 ? 1 : -1];