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