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