// 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; }; @interface Test2 - (void) foo: (test2) foo ; @end template void r1(__restrict T); void r2(__restrict id x) { r1(x); }