2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / testsuite / gcc.dg / bitfld-7.c
blobfdaa93f261a29869363e29fe9c5507522c26c32e
1 /* Test for rejection of typeof on bit-fields. PR c/10333. */
2 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
3 /* { dg-do compile } */
4 /* { dg-options "-fshow-column" } */
6 struct { int a:1; } x;
8 typeof (x.a) z; /* { dg-error "9:applied to a bit-field" "typeof" } */