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:
Aaron Ballman 2014-03-11 13:19:42 +00:00
parent b5c59f5862
commit c6607cd2a1
1 changed files with 1 additions and 1 deletions

View File

@ -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}}