Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / c90-dupqual-1.c
blob14838c7367f17eefcd9d053ef9e5883ec161e8c8
1 /* { dg-do compile } */
2 /* { dg-options "-std=iso9899:1990 -pedantic-errors" } */
4 typedef const int CI;
5 const const int c1; /* { dg-error "duplicate" } */
6 const CI c2; /* { dg-error "duplicate" } */
7 const CI *c3; /* { dg-error "duplicate" } */
9 typedef volatile int VI;
10 volatile volatile int v1; /* { dg-error "duplicate" } */
11 volatile VI v2; /* { dg-error "duplicate" } */
12 volatile VI *v3; /* { dg-error "duplicate" } */