aboutsummaryrefslogtreecommitdiff
path: root/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp')
-rw-r--r--test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp b/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp
index a6fca9b2c4..93ba6f61c7 100644
--- a/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp
+++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -std=c++11 %s -verify
int test_default_args() {
- [](int i = 5, // expected-error{{default arguments can only be specified for parameters in a function declaration}} \
+ (void)[](int i = 5, // expected-error{{default arguments can only be specified for parameters in a function declaration}} \
// expected-error{{lambda expressions are not supported yet}}
int j = 17) {}; // expected-error{{default arguments can only be specified for parameters in a function declaration}}
}