2018-05-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / bitfld-11.c
blobc7fe6a510aa2b21b2a565566689e6e656929e730
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 "'__alignof' applied to a bit-field" } */