summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-04-13 15:53:08 +0000
committerDouglas Gregor <dgregor@apple.com>2012-04-13 15:53:08 +0000
commitf53bc3126bb9919050fb5db746f1e5bd52ccf5f6 (patch)
treec3e188e0153d6631a0dde7c0681e10ff9f62009e /test
parent00000b08ff3c60d653d0bf49a935a3976c3a5ec5 (diff)
super and class property reference expressions don't need to be
rebuilt. Fixes <rdar://problem/11052352>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/SemaObjCXX/property-reference.mm15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/SemaObjCXX/property-reference.mm b/test/SemaObjCXX/property-reference.mm
index 18f06045a3..b86ae5e9f5 100644
--- a/test/SemaObjCXX/property-reference.mm
+++ b/test/SemaObjCXX/property-reference.mm
@@ -42,3 +42,18 @@ typedef const TCPPObject& CREF_TCPPObject;
cppObjectNonAtomic = cppObject;
}
@end
+
+
+// <rdar://problem/11052352>
+@interface NSObject
++ alloc;
+- init;
+- class;
+@end
+
+template<typename T> void f() {
+ NSObject *o = [NSObject.alloc init];
+ [o class];
+}
+
+template void f<int>();