summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Wno-c++-compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/Wno-c++-compat.c')
-rw-r--r--gcc/testsuite/gcc.dg/Wno-c++-compat.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/Wno-c++-compat.c b/gcc/testsuite/gcc.dg/Wno-c++-compat.c
new file mode 100644
index 000000000..1fda016e6
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/Wno-c++-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 "-Wno-c++-compat" } */
+
+extern const int foo = 42; /* { dg-warning "initialized and declared" } */
+