aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/warn-shadow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/warn-shadow.cpp')
-rw-r--r--test/SemaCXX/warn-shadow.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaCXX/warn-shadow.cpp b/test/SemaCXX/warn-shadow.cpp
index c2ab25c5c2..3bf9af414d 100644
--- a/test/SemaCXX/warn-shadow.cpp
+++ b/test/SemaCXX/warn-shadow.cpp
@@ -55,3 +55,18 @@ void Foo::Baz() {
double Bar = 12; // Don't warn.
}
}
+
+// http://llvm.org/PR9160
+namespace PR9160 {
+struct V {
+ V(int);
+};
+struct S {
+ V v;
+ static void m() {
+ if (1) {
+ V v(0);
+ }
+ }
+};
+}