2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2016-12-08 15:55:51 -06:00
|
|
|
// This test makes sure that we don't run into a linker error because of the
|
|
|
|
// middle::reachable pass missing trait methods with default impls.
|
|
|
|
|
2019-03-11 19:49:17 -05:00
|
|
|
// aux-build:issue-38226-aux.rs
|
2016-12-08 15:55:51 -06:00
|
|
|
|
|
|
|
// Need -Cno-prepopulate-passes to really disable inlining, otherwise the faulty
|
|
|
|
// code gets optimized out:
|
2018-05-30 15:46:56 -05:00
|
|
|
// compile-flags: -Cno-prepopulate-passes -Cpasses=name-anon-globals
|
2016-12-08 15:55:51 -06:00
|
|
|
|
|
|
|
extern crate issue_38226_aux;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
issue_38226_aux::foo::<()>();
|
|
|
|
}
|