diff --git a/test/SemaObjCXX/parameters.mm b/test/SemaObjCXX/parameters.mm new file mode 100644 index 0000000000..aab1fbda4d --- /dev/null +++ b/test/SemaObjCXX/parameters.mm @@ -0,0 +1,12 @@ +// 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}} +