Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/bitfld-11.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* Test for rejection of __alignof on bit-fields. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ /* { dg-options "" } */ struct { int a : 1; } x; int r = __alignof (x.a); /* { dg-error "'__alignof' applied to a bit-field" } */