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