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).

llvm-svn: 101031
This commit is contained in:
Douglas Gregor 2010-04-12 07:51:13 +00:00
parent 6635bb26a6
commit 7531ca96f7
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
// 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}}