Douglas Gregor | 6b8ef34 | 2012-02-01 17:18:19 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -std=c++11 %s -verify |
2 | |||||
3 | int test_default_args() { | ||||
Douglas Gregor | 656bc62 | 2012-02-09 08:26:42 +0000 | [diff] [blame^] | 4 | (void)[](int i = 5, // expected-error{{default arguments can only be specified for parameters in a function declaration}} |
Douglas Gregor | 6b8ef34 | 2012-02-01 17:18:19 +0000 | [diff] [blame] | 5 | int j = 17) {}; // expected-error{{default arguments can only be specified for parameters in a function declaration}} |
6 | } |