diff options
author | Charles Li <charles.li@sony.com> | 2017-02-13 17:56:30 +0000 |
---|---|---|
committer | Charles Li <charles.li@sony.com> | 2017-02-13 17:56:30 +0000 |
commit | 58a221a4e24ae17f1da49642355aef5c26a3365b (patch) | |
tree | 58a15b3f3056fabe20e4e12014376d697b03412a /clang/test/Index/comment-cplus-decls.cpp | |
parent | db4b0a719400299be95bcd40d95829f4fa6b82f4 (diff) | |
download | bcm5719-llvm-58a221a4e24ae17f1da49642355aef5c26a3365b.tar.gz bcm5719-llvm-58a221a4e24ae17f1da49642355aef5c26a3365b.zip |
[Test] Make Lit tests C++11 compatible - nounwind noexcept
C++11 destructors are nothrow by default.
Differential Revision: https://reviews.llvm.org/D29859
llvm-svn: 294972
Diffstat (limited to 'clang/test/Index/comment-cplus-decls.cpp')
-rw-r--r-- | clang/test/Index/comment-cplus-decls.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/Index/comment-cplus-decls.cpp b/clang/test/Index/comment-cplus-decls.cpp index d4f968f5fbf..463aa9e7929 100644 --- a/clang/test/Index/comment-cplus-decls.cpp +++ b/clang/test/Index/comment-cplus-decls.cpp @@ -2,9 +2,15 @@ // RUN: mkdir %t // RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 %s > %t/out // RUN: FileCheck %s < %t/out +// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 -std=c++98 %s > %t/98 +// RUN: FileCheck %s < %t/98 +// RUN: c-index-test -test-load-source all -comments-xml-schema=%S/../../bindings/xml/comment-xml-schema.rng -target x86_64-apple-darwin10 -std=c++11 %s > %t/11 +// RUN: FileCheck %s < %t/11 // Ensure that XML we generate is not invalid. // RUN: FileCheck %s -check-prefix=WRONG < %t/out +// RUN: FileCheck %s -check-prefix=WRONG < %t/98 +// RUN: FileCheck %s -check-prefix=WRONG < %t/11 // WRONG-NOT: CommentXMLInvalid // rdar://12378714 @@ -42,7 +48,7 @@ protected: // CHECK: <Declaration>class Test {}</Declaration> // CHECK: <Declaration>Test() : reserved(new Test::data()) {}</Declaration> // CHECK: <Declaration>unsigned int getID() const</Declaration> -// CHECK: <Declaration>~Test()</Declaration> +// CHECK: <Declaration>~Test(){{( noexcept)?}}</Declaration> // CHECK: <Declaration>Test::data *reserved</Declaration> |