1 // needs-sanitizer-support
2 // needs-sanitizer-address
3 // compile-flags: --test -Z sanitizer=address
5 // #43031: Verify that rustdoc passes `-Z` options to rustc. Use an extern
6 // function that is provided by the sanitizer runtime, if flag is not passed
7 // correctly, then linking will fail.
11 /// fn __sanitizer_print_stack_trace();
15 /// unsafe { __sanitizer_print_stack_trace() };
18 pub fn z_flag_is_passed_to_rustc() {}