gcc/testsuite/gcc.dg/declspec-2.c
raw| 1 | /* Test declaration specifiers. Test cases that used to be handled in |
| 2 | a loop in grokdeclarator. Pedantic cases. */ |
| 3 | /* Origin: Joseph Myers <[email protected]> */ |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-options "-std=gnu89 -pedantic" } */ |
| 6 | |
| 7 | /* These should all be diagnosed, but only once, not for every |
| 8 | identifier declared. */ |
| 9 | |
| 10 | const const int x0, /* { dg-warning "duplicate" } */ |
| 11 | x1; |
| 12 | |
| 13 | long long x2, /* { dg-warning "long long" } */ |
| 14 | x3; |