Index: gcc/testsuite/gcc.dg/Wshadow-local-3.c |
diff --git a/gcc/testsuite/gcc.dg/Wshadow-local-3.c b/gcc/testsuite/gcc.dg/Wshadow-local-3.c |
new file mode 100644 |
index 0000000..429df37 |
--- /dev/null |
+++ b/gcc/testsuite/gcc.dg/Wshadow-local-3.c |
@@ -0,0 +1,9 @@ |
+/* { dg-do compile } */ |
+/* { dg-options "-Wno-shadow" } */ |
+ |
+void func() { |
+ int i; |
+ { |
+ int i; /* should not warn */ |
+ } |
+} |
-- |
1.7.3.1 |