aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-function-1.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-15 20:26:03 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-15 20:26:03 +0000
commit0712d29123215e00b9e5b3c89746c90d9624830f (patch)
tree63ba7625dcf38aad41a8ccc8a3b8275d7c350181 /test/SemaTemplate/instantiate-function-1.cpp
parenta52aac4851d379403aae4994f16307bf1a219a1c (diff)
Instantiation support for 'this'
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r--test/SemaTemplate/instantiate-function-1.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp
index 5ded6140a6..51de6bca38 100644
--- a/test/SemaTemplate/instantiate-function-1.cpp
+++ b/test/SemaTemplate/instantiate-function-1.cpp
@@ -75,3 +75,11 @@ struct ConvertibleToInt {
template struct X6<ConvertibleToInt, float, char>;
template struct X6<bool, int, int*>; // expected-note{{instantiation}}
+
+template <typename T> struct X7 {
+ void f() {
+ void *v = this;
+ }
+};
+
+template struct X7<int>;