summaryrefslogtreecommitdiffstats
path: root/test/SemaTemplate/qualified-id.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaTemplate/qualified-id.cpp')
-rw-r--r--test/SemaTemplate/qualified-id.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/SemaTemplate/qualified-id.cpp b/test/SemaTemplate/qualified-id.cpp
index 85efab2..a07f05c 100644
--- a/test/SemaTemplate/qualified-id.cpp
+++ b/test/SemaTemplate/qualified-id.cpp
@@ -7,3 +7,14 @@ namespace a {
namespace b {
template<typename T> void f0(a::C<T> &a0) { }
}
+
+
+namespace test1 {
+ int a = 0;
+ template <class T> class Base { };
+ template <class T> class Derived : public Base<T> {
+ int foo() {
+ return test1::a;
+ }
+ };
+}
OpenPOWER on IntegriCloud