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