xref: /xnu-11417.140.69/tests/net_bounds_safety.c (revision 43a90889846e00bfb5cf1d255cdc0a701a1e05a4)
1*43a90889SApple OSS Distributions #include <darwintest_utils.h>
2*43a90889SApple OSS Distributions #include <net/if.h>
3*43a90889SApple OSS Distributions 
4*43a90889SApple OSS Distributions T_DECL(net_bounds_safety,
5*43a90889SApple OSS Distributions     "verify compilation including net/if.h works with and without bounds_safety")
6*43a90889SApple OSS Distributions {
7*43a90889SApple OSS Distributions #if __has_ptrcheck
8*43a90889SApple OSS Distributions 	T_PASS("bounds_safety enabled");
9*43a90889SApple OSS Distributions #else
10*43a90889SApple OSS Distributions 	T_PASS("bounds_safety disabled");
11*43a90889SApple OSS Distributions #endif
12*43a90889SApple OSS Distributions }
13