summaryrefslogtreecommitdiffstats
path: root/test/SemaCXX/default2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/SemaCXX/default2.cpp')
-rw-r--r--test/SemaCXX/default2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/SemaCXX/default2.cpp b/test/SemaCXX/default2.cpp
index d9f1edf..2076322 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;
};
OpenPOWER on IntegriCloud