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