]> git.saurik.com Git - apple/xnu.git/blob - tests/osptr_compat.cpp
xnu-7195.101.1.tar.gz
[apple/xnu.git] / tests / osptr_compat.cpp
1 //
2 // Make sure we can #include OSPtr.h under various version of the C++ Standard.
3 //
4
5 #include <darwintest.h>
6 #include <libkern/c++/OSPtr.h>
7
8 T_GLOBAL_META(
9 T_META_NAMESPACE("osptr"),
10 T_META_CHECK_LEAKS(false),
11 T_META_RUN_CONCURRENTLY(true)
12 );
13
14 #define CONCAT_PRIM(x, y) x ## y
15 #define CONCAT(x, y) CONCAT_PRIM(x, y)
16 T_DECL(CONCAT(osptr_compat_, OSPTR_STD), "osptr.compat") {
17 T_PASS("OSPtr compatibility test passed");
18 }