Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/bitfld-13.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
line wrap: on
line source
/* Test invalid bit-field types: bug 18498. */ /* { dg-do compile } */ /* { dg-options "" } */ int main(void) { struct X { int s[20] : 1; /* { dg-error "bit-field 's' has invalid type" } */ int *p : 2; /* { dg-error "bit-field 'p' has invalid type" } */ int (*f)(float) : 3; /* { dg-error "bit-field 'f' has invalid type" } */ } x; return 0; }