summaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/lookup-dependent-bases.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/lookup-dependent-bases.cpp')
-rw-r--r--clang/test/SemaTemplate/lookup-dependent-bases.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/lookup-dependent-bases.cpp b/clang/test/SemaTemplate/lookup-dependent-bases.cpp
new file mode 100644
index 0000000..2710caf
--- /dev/null
+++ b/clang/test/SemaTemplate/lookup-dependent-bases.cpp
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -fms-extensions -fsyntax-only -verify %s
+
+class C {
+public:
+ static void foo2() { }
+};
+template <class T>
+class A {
+public:
+ typedef C D;
+};
+
+template <class T>
+class B : public A<T> {
+public:
+ void foo() {
+ D::foo2();
+ }
+};