aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020110.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020110.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020110.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020110.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020110.c
new file mode 100644
index 000000000..90e0ce95d
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020110.c
@@ -0,0 +1,12 @@
+/* Copyright 2002 Free Software Foundation */
+
+/* Make sure the nested extern declaration doesn't conflict with the
+ non-extern one in the enclosing scope. */
+
+void foo() {
+ static long bar;
+
+ {
+ extern int bar;
+ }
+}