summaryrefslogtreecommitdiffstats
path: root/libcxxabi/test/dynamic_cast3.pass.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-06-15 19:07:19 +0000
committerEric Fiselier <eric@efcs.ca>2016-06-15 19:07:19 +0000
commitf5ff11c432e4b463686e46e613f6f1eeeb27ce8e (patch)
treed83c7d7adae597a20fdf67b557dd0141b81b853c /libcxxabi/test/dynamic_cast3.pass.cpp
parent9d305d707e990a11a30799476930701bb88e67d1 (diff)
downloadbcm5719-llvm-f5ff11c432e4b463686e46e613f6f1eeeb27ce8e.tar.gz
bcm5719-llvm-f5ff11c432e4b463686e46e613f6f1eeeb27ce8e.zip
Suppress warnings about the operations currently under test.
llvm-svn: 272819
Diffstat (limited to 'libcxxabi/test/dynamic_cast3.pass.cpp')
-rw-r--r--libcxxabi/test/dynamic_cast3.pass.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcxxabi/test/dynamic_cast3.pass.cpp b/libcxxabi/test/dynamic_cast3.pass.cpp
index afd4ad87469..375b4678990 100644
--- a/libcxxabi/test/dynamic_cast3.pass.cpp
+++ b/libcxxabi/test/dynamic_cast3.pass.cpp
@@ -10,6 +10,12 @@
#include <cassert>
#include "support/timer.hpp"
+// This test explicitly tests dynamic cast with types that have inaccessible
+// bases.
+#if defined(__clang__)
+#pragma clang diagnostic ignored "-Winaccessible-base"
+#endif
+
/*
A1 A2 A3
OpenPOWER on IntegriCloud