aboutsummaryrefslogtreecommitdiff
path: root/test/SemaObjCXX/parameters.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaObjCXX/parameters.mm')
-rw-r--r--test/SemaObjCXX/parameters.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaObjCXX/parameters.mm b/test/SemaObjCXX/parameters.mm
index 1a7869dc7a..363675a0dd 100644
--- a/test/SemaObjCXX/parameters.mm
+++ b/test/SemaObjCXX/parameters.mm
@@ -15,3 +15,6 @@ struct test2 { virtual void foo() = 0; }; // expected-note {{unimplemented}}
@interface Test2
- (void) foo: (test2) foo; // expected-error {{parameter type 'test2' is an abstract class}}
@end
+
+template<typename T> void r1(__restrict T);
+void r2(__restrict id x) { r1(x); }