3 // compile-flags: -C codegen-units=3
4 // ignore-emscripten no threads support
6 // Test unwinding through multiple compilation units.
8 // According to acrichto, in the distant past `ld -r` (which is used during
9 // linking when codegen-units > 1) was known to produce object files with
10 // damaged unwinding tables. This may be related to GNU binutils bug #6893
11 // ("Partial linking results in corrupt .eh_frame_hdr"), but I'm not certain.
12 // In any case, this test should let us know if enabling parallel codegen ever
18 fn pad() -> usize { 0 }
33 thread::spawn(move|| { ::b::g() }).join().unwrap_err();