aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/arc-templates.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/arc-templates.mm')
-rw-r--r--test/SemaObjCXX/arc-templates.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaObjCXX/arc-templates.mm b/test/SemaObjCXX/arc-templates.mm
index ef68b94e7284..b3519b957372 100644
--- a/test/SemaObjCXX/arc-templates.mm
+++ b/test/SemaObjCXX/arc-templates.mm
@@ -292,3 +292,13 @@ namespace rdar12367446 {
A<id()> value;
}
}
+
+namespace rdar14467941 {
+ template<typename T> int &takePtr(const T &);
+ template<typename T> float &takePtr(T * const &);
+
+ void testTakePtr(A *a) {
+ float &fr1 = takePtr(a);
+ float &fr2 = takePtr<A>(a);
+ }
+}