1*fdd8201dSApple OSS Distributions // 2*fdd8201dSApple OSS Distributions // Make sure we can #include OSPtr.h under various version of the C++ Standard. 3*fdd8201dSApple OSS Distributions // 4*fdd8201dSApple OSS Distributions 5*fdd8201dSApple OSS Distributions #include <darwintest.h> 6*fdd8201dSApple OSS Distributions #include <libkern/c++/OSPtr.h> 7*fdd8201dSApple OSS Distributions 8*fdd8201dSApple OSS Distributions T_GLOBAL_META( 9*fdd8201dSApple OSS Distributions T_META_NAMESPACE("osptr"), 10*fdd8201dSApple OSS Distributions T_META_CHECK_LEAKS(false), 11*fdd8201dSApple OSS Distributions T_META_RUN_CONCURRENTLY(true) 12*fdd8201dSApple OSS Distributions ); 13*fdd8201dSApple OSS Distributions 14*fdd8201dSApple OSS Distributions #define CONCAT_PRIM(x, y) x ## y 15*fdd8201dSApple OSS Distributions #define CONCAT(x, y) CONCAT_PRIM(x, y) CONCAT(osptr_compat_,OSPTR_STD)16*fdd8201dSApple OSS DistributionsT_DECL(CONCAT(osptr_compat_, OSPTR_STD), "osptr.compat") { 17*fdd8201dSApple OSS Distributions T_PASS("OSPtr compatibility test passed"); 18*fdd8201dSApple OSS Distributions } 19