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