OSDN Git Service

* c-decl.c (declspecs_add_type): Don't pedwarn for _Complex in
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / bitfld-7.c
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 "" } */
5
6 struct { int a:1; } x;
7
8 typeof (x.a) z; /* { dg-error "applied to a bit-field" "typeof" } */