aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/Wc++-compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/Wc++-compat.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/Wc++-compat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/Wc++-compat.c b/gcc-4.9/gcc/testsuite/gcc.dg/Wc++-compat.c
new file mode 100644
index 000000000..aa435be9f
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/Wc++-compat.c
@@ -0,0 +1,9 @@
+/* Copyright (C) 2005 Free Software Foundation.
+
+ by Gabriel Dos Reis <gdr@integrable-solutions.net> */
+
+/* { dg-do compile } */
+/* { dg-options "-Wc++-compat" } */
+
+extern const int foo = 42;
+