summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-lambda-expressions.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-03-11 13:19:42 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-03-11 13:19:42 +0000
commitc6607cd2a1de156c018d8ef0eefec66a7fc21502 (patch)
tree1722e9c843b8f00353773872127f2acf731c2630 /clang/test/Parser/cxx0x-lambda-expressions.cpp
parentb5c59f58625eb8bf8302d08e74bb6c5b4663ef26 (diff)
downloadbcm5719-llvm-c6607cd2a1de156c018d8ef0eefec66a7fc21502.tar.gz
bcm5719-llvm-c6607cd2a1de156c018d8ef0eefec66a7fc21502.zip
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
Diffstat (limited to 'clang/test/Parser/cxx0x-lambda-expressions.cpp')
-rw-r--r--clang/test/Parser/cxx0x-lambda-expressions.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx0x-lambda-expressions.cpp b/clang/test/Parser/cxx0x-lambda-expressions.cpp
index 189a6448e1d..6d39a730478 100644
--- a/clang/test/Parser/cxx0x-lambda-expressions.cpp
+++ b/clang/test/Parser/cxx0x-lambda-expressions.cpp
@@ -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}}
OpenPOWER on IntegriCloud