summaryrefslogtreecommitdiffstats
path: root/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp')
-rw-r--r--clang/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
index e816426cbf9..21c8e22092b 100644
--- a/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
+++ b/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p7.cpp
@@ -2,8 +2,7 @@
// Check that analysis-based warnings work in lambda bodies.
void analysis_based_warnings() {
- (void)[]() -> int { }; // expected-warning{{control reaches end of non-void function}} \
- // expected-error{{lambda expressions are not supported yet}}
+ (void)[]() -> int { }; // expected-warning{{control reaches end of non-void function}}
}
// Check that we get the right types of captured variables (the
@@ -12,32 +11,32 @@ int &check_const_int(int&);
float &check_const_int(const int&);
void test_capture_constness(int i, const int ic) {
- (void)[i,ic] ()->void { // expected-error{{lambda expressions are not supported yet}}
+ (void)[i,ic] ()->void {
float &fr1 = check_const_int(i);
float &fr2 = check_const_int(ic);
};
- (void)[=] ()->void { // expected-error{{lambda expressions are not supported yet}}
+ (void)[=] ()->void {
float &fr1 = check_const_int(i);
float &fr2 = check_const_int(ic);
};
- (void)[i,ic] () mutable ->void { // expected-error{{lambda expressions are not supported yet}}
+ (void)[i,ic] () mutable ->void {
int &ir = check_const_int(i);
float &fr = check_const_int(ic);
};
- (void)[=] () mutable ->void { // expected-error{{lambda expressions are not supported yet}}
+ (void)[=] () mutable ->void {
int &ir = check_const_int(i);
float &fr = check_const_int(ic);
};
- (void)[&i,&ic] ()->void { // expected-error{{lambda expressions are not supported yet}}
+ (void)[&i,&ic] ()->void {
int &ir = check_const_int(i);
float &fr = check_const_int(ic);
};
- (void)[&] ()->void { // expected-error{{lambda expressions are not supported yet}}
+ (void)[&] ()->void {
int &ir = check_const_int(i);
float &fr = check_const_int(ic);
};
OpenPOWER on IntegriCloud