OSDN Git Service

* gcc.dg/intmax_t-1.c: Remove mmix-*-* from dg-error statement.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / bitfld-11.c
1 /* Test for rejection of __alignof on bit-fields.  */
2 /* Origin: Joseph Myers <joseph@codesourcery.com> */
3 /* { dg-do compile } */
4 /* { dg-options "" } */
5
6 struct { int a : 1; } x;
7
8 int r = __alignof (x.a); /* { dg-error "error: '__alignof' applied to a bit-field" } */