summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gnu89-dupqual-1.c
blob: 9bd1db01569a1b44e0eb9d38f44a1094dfca7c39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-std=gnu89 -Werror" } */

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

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