]>
Commit | Line | Data |
---|---|---|
2c7020eb MP |
1 | /* PR c/67964 */ |
2 | /* { dg-do compile } */ | |
3 | ||
4 | extern int fn0 (void) __attribute__ ((const const)); /* { dg-error "expected" } */ | |
5 | extern int fn1 (void) __attribute__ ((const, const)); | |
6 | extern int fn2 (void) __attribute__ ((optimize (0) const)); /* { dg-error "expected" } */ | |
7 | extern int fn3 (void) __attribute__ ((optimize (0), const)); | |
8 | /* We allow starting/trailing comma. */ | |
9 | extern int fn4 (void) __attribute__ ((, const)); | |
10 | extern int fn5 (void) __attribute__ ((const, )); | |
11 | extern int fn6 (void) __attribute__ ((,,,, const,,,,, )); | |
12 | extern int fn7 (void) __attribute__ ((,)); | |
13 | extern int fn8 (void) __attribute__ ((__noreturn__ __noreturn__)); /* { dg-error "expected" } */ | |
14 | extern int fn9 (void) __attribute__ ((__noreturn__, __noreturn__)); | |
15 | extern int fn10 (void) __attribute__ ((__cold__ __pure__ __noclone__)); /* { dg-error "expected" } */ | |
16 | extern int fn11 (void) __attribute__ ((__cold__, __pure__ __noclone__)); /* { dg-error "expected" } */ | |
17 | int i; | |
18 | int ii; | |
19 | extern int a __attribute__ ((alias ("i") unused)); /* { dg-error "expected" } */ | |
20 | extern int a2 __attribute__ ((alias ("i" "i"))); | |
21 | struct A { char p[6]; } __attribute__((__packed__ packed)); /* { dg-error "expected" } */ |