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