aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/deduction.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/deduction.mm')
-rw-r--r--test/SemaObjCXX/deduction.mm7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaObjCXX/deduction.mm b/test/SemaObjCXX/deduction.mm
index 6dd449d6ea75..220f36863bab 100644
--- a/test/SemaObjCXX/deduction.mm
+++ b/test/SemaObjCXX/deduction.mm
@@ -56,3 +56,10 @@ namespace test1 {
template struct tester<Test1Class>; // expected-note {{in instantiation}}
template struct tester<Test1Class<Test1Protocol> >; // expected-note {{in instantiation}}
}
+
+namespace test2 {
+ template <typename T> void foo(const T* t) {}
+ void test(id x) {
+ foo(x);
+ }
+}