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