Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/bitfld-13.c @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* Test invalid bit-field types: bug 18498. */ |
2 /* { dg-do compile } */ | |
3 /* { dg-options "" } */ | |
4 | |
5 int | |
6 main(void) | |
7 { | |
8 struct X { | |
9 int s[20] : 1; /* { dg-error "bit-field 's' has invalid type" } */ | |
10 int *p : 2; /* { dg-error "bit-field 'p' has invalid type" } */ | |
11 int (*f)(float) : 3; /* { dg-error "bit-field 'f' has invalid type" } */ | |
12 } x; | |
13 return 0; | |
14 } |