blob: 363675a0ddf780dbcbee72aab6e8a563a0a616a9 [file] [log] [blame]
Douglas Gregor7683a3f2010-04-12 07:51:13 +00001// RUN: %clang_cc1 -verify %s
2
3@interface A
4@end
5
6template<typename T>
7struct X0 {
8 void f(T); // expected-error{{interface type 'A' cannot be passed by value}}
9};
10
11X0<A> x0a; // expected-note{{instantiation}}
12
John McCall81ef3e62011-04-23 02:46:06 +000013
14struct test2 { virtual void foo() = 0; }; // expected-note {{unimplemented}}
15@interface Test2
16- (void) foo: (test2) foo; // expected-error {{parameter type 'test2' is an abstract class}}
17@end
Richard Smith93d6b072013-03-28 00:03:10 +000018
19template<typename T> void r1(__restrict T);
20void r2(__restrict id x) { r1(x); }