Files
clang-p2996/clang/test/CXX/expr/expr.prim/expr.prim.lambda/p5.cpp
Douglas Gregor 656bc62a73 Remove the "unsupported" error for lambda expressions. It's annoying,
and rapidly becoming untrue.

llvm-svn: 150165
2012-02-09 08:26:42 +00:00

7 lines
318 B
C++

// RUN: %clang_cc1 -std=c++11 %s -verify
int test_default_args() {
(void)[](int i = 5, // expected-error{{default arguments can only be specified for parameters in a function declaration}}
int j = 17) {}; // expected-error{{default arguments can only be specified for parameters in a function declaration}}
}