diff options
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.cpp | 7 |
1 files changed, 7 insertions, 0 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 new file mode 100644 index 0000000000..a6fca9b2c4 --- /dev/null +++ b/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp @@ -0,0 +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}} \ + // 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}} +} |