summaryrefslogtreecommitdiff
path: root/clang/test/SemaTemplate/typo-dependent-name.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaTemplate/typo-dependent-name.cpp')
-rw-r--r--clang/test/SemaTemplate/typo-dependent-name.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/typo-dependent-name.cpp b/clang/test/SemaTemplate/typo-dependent-name.cpp
new file mode 100644
index 0000000..96554e9
--- /dev/null
+++ b/clang/test/SemaTemplate/typo-dependent-name.cpp
@@ -0,0 +1,17 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+template<typename T>
+struct Base {
+ T inner;
+};
+
+template<typename T>
+struct X {
+ template<typename U>
+ struct Inner {
+ };
+
+ bool f(T other) {
+ return this->inner < other;
+ }
+};