aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/c90-dupqual-1.c
blob: 14838c7367f17eefcd9d053ef9e5883ec161e8c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1990 -pedantic-errors" } */

typedef const int CI;
const const int c1;		/* { dg-error "duplicate" } */
const CI c2;			/* { dg-error "duplicate" } */
const CI *c3;			/* { dg-error "duplicate" } */

typedef volatile int VI;
volatile volatile int v1;	/* { dg-error "duplicate" } */
volatile VI v2;			/* { dg-error "duplicate" } */
volatile VI *v3;		/* { dg-error "duplicate" } */