minix/external/bsd/llvm/dist/clang/test/SemaObjCXX/parameters.mm
Lionel Sambuc f4a2713ac8 Importing netbsd clang -- pristine
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
2014-07-28 17:05:57 +02:00

20 lines
486 B
Text

// RUN: %clang_cc1 -verify %s
@interface A
@end
template<typename T>
struct X0 {
void f(T); // expected-error{{interface type 'A' cannot be passed by value}}
};
X0<A> 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
template<typename T> void r1(__restrict T);
void r2(__restrict id x) { r1(x); }