Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / gnu89-dupqual-1.c
blob9bd1db01569a1b44e0eb9d38f44a1094dfca7c39
1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu89 -Werror" } */
4 typedef const int CI;
5 const const int c1; /* { dg-bogus "duplicate" } */
6 const CI c2; /* { dg-bogus "duplicate" } */
7 const CI *c3; /* { dg-bogus "duplicate" } */
9 typedef volatile int VI;
10 volatile volatile int v1; /* { dg-bogus "duplicate" } */
11 volatile VI v2; /* { dg-bogus "duplicate" } */
12 volatile VI *v3; /* { dg-bogus "duplicate" } */