r203566 - 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.
Aaron Ballman
aaron at aaronballman.com
Tue Mar 11 06:19:43 PDT 2014
Author: aaronballman
Date: Tue Mar 11 08:19:42 2014
New Revision: 203566
URL: http://llvm.org/viewvc/llvm-project?rev=203566&view=rev
Log:
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.
Modified:
cfe/trunk/test/Parser/cxx0x-lambda-expressions.cpp
Modified: cfe/trunk/test/Parser/cxx0x-lambda-expressions.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Parser/cxx0x-lambda-expressions.cpp?rev=203566&r1=203565&r2=203566&view=diff
==============================================================================
--- cfe/trunk/test/Parser/cxx0x-lambda-expressions.cpp (original)
+++ cfe/trunk/test/Parser/cxx0x-lambda-expressions.cpp Tue Mar 11 08:19:42 2014
@@ -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}}
More information about the cfe-commits
mailing list