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