* testsuite/libgomp.fortran/vla7.f90: Add -w to options.
[official-gcc.git] / gcc / testsuite / gcc.dg / bitfld-11.c
blobe6bff6c74367631f4d77dcf2fe8b5c411288fb22
1 /* Test for rejection of __alignof on bit-fields. */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
6 struct { int a : 1; } x;
8 int r = __alignof (x.a); /* { dg-error "error: '__alignof' applied to a bit-field" } */