aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/injected-class-name.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/injected-class-name.cpp')
-rw-r--r--test/SemaTemplate/injected-class-name.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/SemaTemplate/injected-class-name.cpp b/test/SemaTemplate/injected-class-name.cpp
index 4c21d2585d32..7349fdf392d4 100644
--- a/test/SemaTemplate/injected-class-name.cpp
+++ b/test/SemaTemplate/injected-class-name.cpp
@@ -60,3 +60,9 @@ namespace ForwardDecls {
typename xt::foo *t;
};
}
+
+namespace ConflictingRedecl {
+ template<typename> struct Nested {
+ template<typename> struct Nested; // expected-error {{member 'Nested' has the same name as its class}}
+ };
+}