diff options
Diffstat (limited to 'test/Index/comment-cplus-decls.cpp')
-rw-r--r-- | test/Index/comment-cplus-decls.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/Index/comment-cplus-decls.cpp b/test/Index/comment-cplus-decls.cpp index d4f968f5fbf0..6e32c60a2228 100644 --- a/test/Index/comment-cplus-decls.cpp +++ b/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> @@ -96,7 +102,7 @@ namespace test0 { friend void ns::f(int a); }; } -// CHECK: <Declaration>friend void f(int a)</Declaration> +// CHECK: <Declaration>friend void ns::f(int a)</Declaration> namespace test1 { template <class T> struct Outer { @@ -109,7 +115,7 @@ namespace test1 { }; }; } -// CHECK: <Declaration>friend void foo(T)</Declaration> +// CHECK: <Declaration>friend void Outer<T>::foo(T)</Declaration> namespace test2 { namespace foo { @@ -123,7 +129,7 @@ namespace test2 { friend void ::test2::foo::Func(int x); }; } -// CHECK: <Declaration>friend void Func(int x)</Declaration> +// CHECK: <Declaration>friend void ::test2::foo::Func(int x)</Declaration> namespace test3 { template<class T> class vector { @@ -143,7 +149,7 @@ namespace test3 { }; } // CHECK: <Declaration>void f(const T &t = T())</Declaration> -// CHECK: <Declaration>friend void f(const test3::A &)</Declaration> +// CHECK: <Declaration>friend void vector<A>::f(const test3::A &)</Declaration> class MyClass { |