2018-08-30 12:18:55 +00:00
|
|
|
//@ run-pass
|
2016-12-08 21:55:51 +00: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-12 00:49:17 +00:00
|
|
|
//@ aux-build:issue-38226-aux.rs
|
2016-12-08 21:55:51 +00:00
|
|
|
|
|
|
|
// Need -Cno-prepopulate-passes to really disable inlining, otherwise the faulty
|
|
|
|
// code gets optimized out:
|
2018-05-30 20:46:56 +00:00
|
|
|
//@ compile-flags: -Cno-prepopulate-passes -Cpasses=name-anon-globals
|
2016-12-08 21:55:51 +00:00
|
|
|
|
|
|
|
extern crate issue_38226_aux;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
issue_38226_aux::foo::<()>();
|
|
|
|
}
|