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