aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/declspec-12.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/declspec-12.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/declspec-12.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/declspec-12.c b/gcc-4.9/gcc/testsuite/gcc.dg/declspec-12.c
new file mode 100644
index 000000000..66c153740
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/declspec-12.c
@@ -0,0 +1,6 @@
+/* Test type qualifier in empty declaration: OK but useless. */
+/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
+/* { dg-do compile } */
+/* { dg-options "-pedantic-errors" } */
+
+const struct foo; /* { dg-warning "useless type qualifier in empty declaration" } */