Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.bugs / 900404_07.C
blob19791bfdbac4d764f769f4188f735e745ce3ecf7
1 // { dg-do assemble  }
2 // g++ 1.37.1 bug 900404_07
4 // It is illegal to use a cast to attempt to convert an object type
5 // to a non-scalar type (e.g. an array type).
7 // g++ fails to properly flag as errors such illegal uses of array types.
9 // keywords: array types, casts, type conversion
11 typedef int array_type[10];
13 array_type *ap;
15 void foo ()
17   int i = *((array_type) *ap);  /* { dg-error "" } missed */