Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(112)

Unified Diff: gcc/testsuite/gcc.dg/Wshadow-local-3.c

Issue 4452058: [google] Add two new -Wshadow warnings (Closed)
Patch Set: Created 13 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« gcc/cp/name-lookup.c ('K') | « gcc/testsuite/gcc.dg/Wshadow-local-2.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« gcc/cp/name-lookup.c ('K') | « gcc/testsuite/gcc.dg/Wshadow-local-2.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b