forked from OSchip/llvm-project
Changing this test case to use an unknown attribute, since there are not currently any type attributes which would apply to a lambda, except in MSVC compatibility mode.
llvm-svn: 203566
This commit is contained in:
parent
b5c59f5862
commit
c6607cd2a1
|
@ -24,7 +24,7 @@ class C {
|
|||
[] () -> class C { return C(); };
|
||||
[] () -> enum E { return e; };
|
||||
|
||||
[] [[noreturn]] { while (1) ; }; // expected-error {{lambda requires '()' before attribute specifier}}
|
||||
[] [[fake_ident]] { while (1) ; }; // expected-error {{lambda requires '()' before attribute specifier}} expected-warning {{unknown attribute 'fake_ident' ignored}}
|
||||
[] -> int { return 0; }; // expected-error{{lambda requires '()' before return type}}
|
||||
[] mutable -> int { return 0; }; // expected-error{{lambda requires '()' before 'mutable'}}
|
||||
[](int) -> {}; // PR13652 expected-error {{expected a type}}
|
||||
|
|
Loading…
Reference in New Issue