1 // RUN: %clang_cc1 %s -verify -fsyntax-only
6 __complex__ unsigned xx;
8 __complex__ int result;
18 switch (arr) { // expected-error{{statement requires expression of integer type ('_Complex int' invalid)}}
19 case brr: ; // expected-error{{expression is not an integer constant expression}}
20 case xx: ; // expected-error{{expression is not an integer constant expression}}
33 #define TestPair(m,n) int x##m##n = a##m+a##n;
34 #define TestPairs(m) TestPair(m,1) TestPair(m,2) \
35 TestPair(m,3) TestPair(m,4) \
36 TestPair(m,5) TestPair(m,6) \
37 TestPair(m,7) TestPair(m,8)
38 TestPairs(1); TestPairs(2);
39 TestPairs(3); TestPairs(4);
40 TestPairs(5); TestPairs(6);
41 TestPairs(7); TestPairs(8);
45 void test3(_Complex int *x) {
49 void test4(_Complex float *x) {
53 void test5(_Complex int *x) {