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

const const int foo; /* { dg-bogus "duplicate" "duplicate type qualifier error" } */
OpenPOWER on IntegriCloud