darling-xnu/tests/osptr_compat.cpp
2023-05-16 21:41:14 -07:00

19 lines
427 B
C++

//
// Make sure we can #include OSPtr.h under various version of the C++ Standard.
//
#include <darwintest.h>
#include <libkern/c++/OSPtr.h>
T_GLOBAL_META(
T_META_NAMESPACE("osptr"),
T_META_CHECK_LEAKS(false),
T_META_RUN_CONCURRENTLY(true)
);
#define CONCAT_PRIM(x, y) x ## y
#define CONCAT(x, y) CONCAT_PRIM(x, y)
T_DECL(CONCAT(osptr_compat_, OSPTR_STD), "osptr.compat") {
T_PASS("OSPtr compatibility test passed");
}