summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/cxx0x-attributes.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-08-04 15:30:47 +0000
committerDouglas Gregor <dgregor@apple.com>2011-08-04 15:30:47 +0000
commitdb0b9f12645992bf730b3230efa3bd79a6a98b1b (patch)
tree193a2ad1146d1ac9fbe4619892f8b783fce44ae6 /clang/test/Parser/cxx0x-attributes.cpp
parent96df560ce1224abca26d3a7785de63766f40a01a (diff)
downloadbcm5719-llvm-db0b9f12645992bf730b3230efa3bd79a6a98b1b.tar.gz
bcm5719-llvm-db0b9f12645992bf730b3230efa3bd79a6a98b1b.zip
Parsing of C++0x lambda expressions, from John Freeman with help from
David Blaikie! llvm-svn: 136876
Diffstat (limited to 'clang/test/Parser/cxx0x-attributes.cpp')
-rw-r--r--clang/test/Parser/cxx0x-attributes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Parser/cxx0x-attributes.cpp b/clang/test/Parser/cxx0x-attributes.cpp
index f65e2907095..0285ee1e9ac 100644
--- a/clang/test/Parser/cxx0x-attributes.cpp
+++ b/clang/test/Parser/cxx0x-attributes.cpp
@@ -17,7 +17,7 @@ int comma_attr [[,]]; // expected-error {{expected identifier}}
int scope_attr [[foo::]]; // expected-error {{expected identifier}}
int & [[]] ref_attr = after_attr; // expected-error {{an attribute list cannot appear here}}
class foo {
- void after_const_attr () const [[]]; // expected-error {{expected expression}}
+ void after_const_attr () const [[]]; // expected-error {{expected body of lambda expression}} expected-error {{array has incomplete element type 'void'}}
};
extern "C++" [[]] { } // expected-error {{an attribute list cannot appear here}}
[[]] template <typename T> void before_template_attr (); // expected-error {{an attribute list cannot appear here}}
OpenPOWER on IntegriCloud