diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-08-16 17:58:53 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-08-16 17:58:53 +0000 |
commit | d6577428627bd4b7f8cd87e213151ebe6a587a9f (patch) | |
tree | 7f1eb2324017d2652a2639aed141777fc9a50aab /test/Parser/cxx-decl.cpp | |
parent | 881b36ccbf8eaee709e7763369062a52f5961df1 (diff) |
Fix a crash when parsing malformed out-of-line member function
definition. radar 8307865.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111163 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-decl.cpp')
-rw-r--r-- | test/Parser/cxx-decl.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Parser/cxx-decl.cpp b/test/Parser/cxx-decl.cpp index e4c703c334..e00ffd070f 100644 --- a/test/Parser/cxx-decl.cpp +++ b/test/Parser/cxx-decl.cpp @@ -76,3 +76,10 @@ class Class2 { } // no ; typedef Class1<Class2> Type1; // expected-error {{cannot combine with previous 'class' declaration specifier}} + +// rdar : // 8307865 +struct CodeCompleteConsumer { +}; + +void CodeCompleteConsumer::() { // expected-error {{xpected unqualified-id}} +} |