From: Douglas Gregor Date: Mon, 12 Apr 2010 07:51:13 +0000 (+0000) Subject: Add another test case for r101029, which verifies that we now X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7683a3ffbbcb2950584bc85bb27ac921a3e5524e;p=clang Add another test case for r101029, which verifies that we now correctly diagnose instantiation of a function parameter with Objective-C class type (since Objective-C classes can't be passed by value). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101031 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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}} +