diff options
Diffstat (limited to 'test/SemaCXX/default2.cpp')
-rw-r--r-- | test/SemaCXX/default2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/default2.cpp b/test/SemaCXX/default2.cpp index d9f1edf3b2..20763229cf 100644 --- a/test/SemaCXX/default2.cpp +++ b/test/SemaCXX/default2.cpp @@ -68,8 +68,11 @@ struct Y { Nested* self = this, // expected-error{{invalid use of 'this' outside of a nonstatic member function}} int m); // expected-error{{missing default argument on parameter 'm'}} static int c; + Nested(int i = 42); }; + int mem7(Nested n = Nested()); + static int b; }; |