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