diff options
Diffstat (limited to 'test/Parser/cxx-default-args.cpp')
-rw-r--r-- | test/Parser/cxx-default-args.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Parser/cxx-default-args.cpp b/test/Parser/cxx-default-args.cpp index a084fb0..7fe8474 100644 --- a/test/Parser/cxx-default-args.cpp +++ b/test/Parser/cxx-default-args.cpp @@ -7,3 +7,10 @@ class C { void m(int x = undecl + 0); // expected-error {{use of undeclared identifier 'undecl'}} }; +typedef struct Inst { + void m(int x=0); +} *InstPtr; + +struct X { + void f(int x = 1:); // expected-error {{unexpected end of default argument expression}} +}; |