Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / c-c++-common / pr33193.c
blob2d1929848f881c757889a73fbf5794fb5acbb35e
1 /* PR c/33193 */
2 /* { dg-do compile } */
4 struct a {float x, y; };
6 float f(struct a b)
8 /* The error messages here are different between C and C++, so just
9 make sure we get an error. */
10 float x = __real b; /* { dg-error "" } */
11 float y = __imag b; /* { dg-error "" } */
12 return x / y;
14 int f1(int *b)
16 float x = __imag b; /* { dg-error "wrong type argument" } */
17 float y = __real b; /* { dg-error "wrong type argument" } */
18 return x - y;