simgear/nasal/cppbind/test/cppbind_test_ghost.cxx: workaround for OpenBSD.
OpenBSD's clang++ can't cope with this code, so we disable it.
This commit is contained in:
@@ -6,6 +6,12 @@
|
|||||||
#include <simgear/nasal/cppbind/Ghost.hxx>
|
#include <simgear/nasal/cppbind/Ghost.hxx>
|
||||||
#include <simgear/nasal/cppbind/NasalContext.hxx>
|
#include <simgear/nasal/cppbind/NasalContext.hxx>
|
||||||
|
|
||||||
|
#ifdef __OpenBSD__
|
||||||
|
|
||||||
|
#warning "OpenBSD's clang cannot cope with this code."
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
class Base1:
|
class Base1:
|
||||||
public virtual SGVirtualWeakReferenced
|
public virtual SGVirtualWeakReferenced
|
||||||
{};
|
{};
|
||||||
@@ -226,3 +232,4 @@ BOOST_AUTO_TEST_CASE( bind_methods )
|
|||||||
BOOST_CHECK_EQUAL(test->arg3, "s2");
|
BOOST_CHECK_EQUAL(test->arg3, "s2");
|
||||||
BOOST_CHECK_EQUAL(test->arg4, 1);
|
BOOST_CHECK_EQUAL(test->arg4, 1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user