PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / bitfld-10.c
blobce722314919d32aa06db3b706bc0c0343da751e0
1 /* Test for rejection of sizeof 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 = sizeof (x.a); /* { dg-error "'sizeof' applied to a bit-field" } */