diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-10-12 16:25:54 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-10-12 16:25:54 +0000 |
commit | d54eb4410330383f48d3cc22b2ad8d23f120836b (patch) | |
tree | 9c43b46e6d88088ceda9d93448924cd3bdbd5948 /test/SemaCXX/default2.cpp | |
parent | 240a020bed4a58c3e2e894ad4a3dd31ee3147c9f (diff) |
Parse default arguments within member functions in source order, from
Manuel Klimek! Fixes PR7715.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116311 91177308-0d34-0410-b5e6-96231b3b80d8
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; }; |