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:
parent
6635bb26a6
commit
7531ca96f7
|
@ -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}}
|
||||
|
Loading…
Reference in New Issue