summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-10-01 11:53:20 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-10-01 11:53:20 +0000
commited5a8971ecff1e8e51ced7f44e3f6bb71fd97086 (patch)
tree8d7af258a8a3fb7bad633ba51b51a1c68a047d91
parent30f76caa462a9dfc2510b00e95902ec5c91c47c3 (diff)
downloadbcm5719-llvm-ed5a8971ecff1e8e51ced7f44e3f6bb71fd97086.tar.gz
bcm5719-llvm-ed5a8971ecff1e8e51ced7f44e3f6bb71fd97086.zip
[clang] Ignore builtin namespaces in test/Import/cxx-anon-namespace
Some platforms (e.g. AArch64) put __va_list in the 'std' namespace which might end up being the first namespace we match in this test. Instead let the first namespace match via file name/line so that we skip the builtin namespaces. llvm-svn: 373327
-rw-r--r--clang/test/Import/cxx-anon-namespace/test.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/test/Import/cxx-anon-namespace/test.cpp b/clang/test/Import/cxx-anon-namespace/test.cpp
index 0cbf08c181e..7331a6bc431 100644
--- a/clang/test/Import/cxx-anon-namespace/test.cpp
+++ b/clang/test/Import/cxx-anon-namespace/test.cpp
@@ -2,9 +2,13 @@
// The implicit UsingDirectiveDecls for the anonymous namespaces are created by the Sema.
-// CHECK: NamespaceDecl
+// There might be another builtin namespace before our first namespace, so we can't
+// just look for NamespaceDecl. Instead look for the first line of F.cpp (which only
+// contains the namespace we are looking for but no other decl).
+// CHECK: F.cpp:1:1
// The nested anonymous namespace.
// CHECK-NEXT: NamespaceDecl
+// CHECK-SAME: <invalid sloc>
// CHECK: FunctionDecl
// CHECK-SAME: func4
// CHECK-NEXT: CompoundStmt
OpenPOWER on IntegriCloud