| Argyrios Kyrtzidis | 998d51b | 2010-03-30 22:14:32 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |||||
| 3 | // PR6647 | ||||
| 4 | class C { | ||||
| 5 | // After the error, the rest of the tokens inside the default arg should be | ||||
| 6 | // skipped, avoiding a "expected ';' after class" after 'undecl'. | ||||
| 7 | void m(int x = undecl + 0); // expected-error {{use of undeclared identifier 'undecl'}} | ||||
| 8 | }; | ||||
| 9 | |||||