Fix broken MinGW build of gcc.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr35334.c
blobd4c642e3471a8332983e6718b4fb6c63f28778b9
1 /* PR c++/35334 */
2 /* { dg-do compile } */
3 /* { dg-options "-std=gnu99" } */
4 /* { dg-bogus "not supported by" "" { target *-*-* } 0 } */
6 __complex__ unsigned int i;
7 int j;
8 char k;
9 __complex__ double l;
10 double m;
11 float n;
13 void
14 foo ()
16 ((__complex__ int)i)(); /* { dg-error "is not a function" } */
17 ((__complex__ int)j)(); /* { dg-error "is not a function" } */
18 ((__complex__ int)k)(); /* { dg-error "is not a function" } */
19 ((__complex__ long double)l)(); /* { dg-error "is not a function" } */
20 ((__complex__ long double)m)(); /* { dg-error "is not a function" } */
21 ((__complex__ long double)n)(); /* { dg-error "is not a function" } */