summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c99-idem-qual-1.c
blob: c541d075cb1f63bc2c63e4de4a5dc67344d13ede (plain)
1
2
3
4
5
6
7
/* Test for idempotent type qualifiers: in C99 only.  */
/* Origin: Joseph Myers <jsm28@cam.ac.uk> */
/* { dg-do compile } */
/* { dg-options "-std=iso9899:1999 -pedantic-errors" } */

typedef const int cint;
const cint foo; /* { dg-bogus "duplicate" "duplicate type qualifier error" } */