OSDN Git Service

PR c/20740
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / declspec-2.c
1 /* Test declaration specifiers.  Test cases that used to be handled in
2    a loop in grokdeclarator.  Pedantic cases.  */
3 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
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;