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