OSDN Git Service

* gcc.c-torture/compile/20020110.c: New test.
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Feb 2002 23:13:17 +0000 (23:13 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Feb 2002 23:13:17 +0000 (23:13 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49919 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ebf920f..faec271 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;
+  }
+}