aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/declspec-15.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/declspec-15.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/declspec-15.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/declspec-15.c b/gcc-4.9/gcc/testsuite/gcc.dg/declspec-15.c
new file mode 100644
index 000000000..dc3da61c2
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/declspec-15.c
@@ -0,0 +1,12 @@
+/* Test diagnostic for empty declarations in old-style parameter
+ declarations. Test with no special options. */
+/* Origin: Joseph Myers <joseph@codesourcery.com> */
+/* { dg-do compile } */
+/* { dg-options "-std=gnu89" } */
+
+void
+f (a, b)
+ int; /* { dg-warning "empty declaration" } */
+ register; /* { dg-warning "empty declaration" } */
+{
+}