diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20020110.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20020110.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20020110.c b/gcc/testsuite/gcc.c-torture/compile/20020110.c new file mode 100644 index 000000000..90e0ce95d --- /dev/null +++ b/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; + } +} |