From 365e5265c81e1b741fdfa4f0054a2931601934d7 Mon Sep 17 00:00:00 2001 From: Julian Smith Date: Sat, 1 Aug 2020 07:42:39 +0100 Subject: [PATCH] simgear/nasal/cppbind/test/cppbind_test_ghost.cxx: workaround for OpenBSD. OpenBSD's clang++ can't cope with this code, so we disable it. --- simgear/nasal/cppbind/test/cppbind_test_ghost.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/simgear/nasal/cppbind/test/cppbind_test_ghost.cxx b/simgear/nasal/cppbind/test/cppbind_test_ghost.cxx index cdfcdf12..5ae2fd90 100644 --- a/simgear/nasal/cppbind/test/cppbind_test_ghost.cxx +++ b/simgear/nasal/cppbind/test/cppbind_test_ghost.cxx @@ -6,6 +6,12 @@ #include #include +#ifdef __OpenBSD__ + +#warning "OpenBSD's clang cannot cope with this code." + +#else + class Base1: public virtual SGVirtualWeakReferenced {}; @@ -226,3 +232,4 @@ BOOST_AUTO_TEST_CASE( bind_methods ) BOOST_CHECK_EQUAL(test->arg3, "s2"); BOOST_CHECK_EQUAL(test->arg4, 1); } +#endif