p5.cpp revision b326ca8ffbea96f9cc8a457b0f57be880304a6f5
1// RUN: %clang_cc1 -std=c++11 %s -verify
2
3int test_default_args() {
4  (void)[](int i = 5,  // expected-error{{default arguments can only be specified for parameters in a function declaration}}
5     int j = 17) {}; // expected-error{{default arguments can only be specified for parameters in a function declaration}}
6}
7