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