aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c90-idem-qual-2.c
diff options
context:
space:
mode:
author(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-28 22:58:21 +0000
committer(no author) <(no author)@138bc75d-0d04-0410-961f-82ee72b054a4>2002-11-28 22:58:21 +0000
commit49b37606eedf65c5d12d060dc7a0712a00d4d96a (patch)
tree9af9d89d9209c12f2c21fa4220b192e3b0777282 /gcc/testsuite/gcc.dg/c90-idem-qual-2.c
parentb2c70b118eacbf74cad603bd6ee927320f0f737b (diff)
This commit was manufactured by cvs2svn to create tagrtlopt-merge-20022911
'rtlopt-merge-20022911'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/tags/rtlopt-merge-20022911@59619 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/c90-idem-qual-2.c')
-rw-r--r--gcc/testsuite/gcc.dg/c90-idem-qual-2.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/c90-idem-qual-2.c b/gcc/testsuite/gcc.dg/c90-idem-qual-2.c
new file mode 100644
index 00000000000..c9bb6f7e252
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/c90-idem-qual-2.c
@@ -0,0 +1,7 @@
+/* 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:1990 -pedantic-errors" } */
+
+const const int foo; /* { dg-bogus "warning" "warning in place of error" } */
+/* { dg-error "duplicate" "duplicate type qualifier error" { target *-*-* } 6 } */