2010-04-12 15:51:13 +08:00
|
|
|
// 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}}
|
|
|
|
|
2011-04-23 10:46:06 +08:00
|
|
|
|
|
|
|
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
|
2013-03-28 08:03:10 +08:00
|
|
|
|
|
|
|
template<typename T> void r1(__restrict T);
|
|
|
|
void r2(__restrict id x) { r1(x); }
|