commit | abf6af4524c034d746f55b327688579e994b213e | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Fri May 15 20:26:03 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Fri May 15 20:26:03 2009 +0000 |
tree | 63ba7625dcf38aad41a8ccc8a3b8275d7c350181 | |
parent | ea0bf5d9f83f2caf59958495bb1288301ed5b3bd [diff] [blame] |
Instantiation support for 'this' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71886 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaTemplate/instantiate-function-1.cpp b/test/SemaTemplate/instantiate-function-1.cpp index 5ded614..51de6bc 100644 --- a/test/SemaTemplate/instantiate-function-1.cpp +++ b/test/SemaTemplate/instantiate-function-1.cpp
@@ -75,3 +75,11 @@ 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>;