зеркало из https://github.com/microsoft/clang-1.git
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
This commit is contained in:
Родитель
cb27b0f70d
Коммит
7683a3ffbb
|
@ -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}}
|
||||
|
Загрузка…
Ссылка в новой задаче