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) CONCAT(osptr_compat_,OSPTR_STD)16T_DECL(CONCAT(osptr_compat_, OSPTR_STD), "osptr.compat") { 17 T_PASS("OSPtr compatibility test passed"); 18 } 19