From 222e2a7620e6520ffaf4fc4e69d79c18da31542e Mon Sep 17 00:00:00 2001 From: "Zancanaro; Carlo" Date: Mon, 24 Sep 2012 09:58:17 +1000 Subject: Add the clang library to the repo (with some of my changes, too). --- clang/test/SemaObjCXX/parameters.mm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 clang/test/SemaObjCXX/parameters.mm (limited to 'clang/test/SemaObjCXX/parameters.mm') diff --git a/clang/test/SemaObjCXX/parameters.mm b/clang/test/SemaObjCXX/parameters.mm new file mode 100644 index 0000000..1a7869d --- /dev/null +++ b/clang/test/SemaObjCXX/parameters.mm @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -verify %s + +@interface A +@end + +template +struct X0 { + void f(T); // expected-error{{interface type 'A' cannot be passed by value}} +}; + +X0 x0a; // expected-note{{instantiation}} + + +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 -- cgit v1.2.3