aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/instantiate-function-1.mm
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-16 20:31:20 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-16 20:31:20 +0000
commit4ef2770ee522048a19311d13ccd3b9605297ec58 (patch)
treef0fdee375fd3b842bb9c96e9c01098c7fdb0cca7 /test/SemaTemplate/instantiate-function-1.mm
parent8ae0639ac2a34a8fea50b03fca900e3ace477375 (diff)
Improve checking of member expressions where the base type is a dependent type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71956 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaTemplate/instantiate-function-1.mm')
-rw-r--r--test/SemaTemplate/instantiate-function-1.mm14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/SemaTemplate/instantiate-function-1.mm b/test/SemaTemplate/instantiate-function-1.mm
new file mode 100644
index 0000000000..aef2d9dbb7
--- /dev/null
+++ b/test/SemaTemplate/instantiate-function-1.mm
@@ -0,0 +1,14 @@
+template<typename T> struct Member0 {
+ void f(T t) {
+ t;
+ t.f;
+ t->f;
+
+ T* tp;
+ tp.f;
+ tp->f;
+
+ this->f;
+ this.f; // expected-error{{member reference base type 'struct Member0 *const' is not a structure or union}}
+ }
+};