* gcc.c-torture/compile/20020110.c: New test.
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 20 Feb 2002 23:13:17 +0000 (23:13 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 20 Feb 2002 23:13:17 +0000 (23:13 +0000)
From-SVN: r49919

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20020110.c [new file with mode: 0644]

index ebf920fc0f8b5494b07178ddd6c00769b943eb08..faec271d2068ee63bb5b4e3a32b2dbfc0c9befea 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gcc.c-torture/compile/20020110.c: New test.
+
 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
 
        * gcc.c-torture/execute/20020219-1.c: New test.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020110.c b/gcc/testsuite/gcc.c-torture/compile/20020110.c
new file mode 100644 (file)
index 0000000..90e0ce9
--- /dev/null
@@ -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;
+  }
+}