Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/bitfld-13.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
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; }