2 // This test makes sure that we don't run into a linker error because of the
3 // middle::reachable pass missing trait methods with default impls.
5 // aux-build:issue-38226-aux.rs
7 // Need -Cno-prepopulate-passes to really disable inlining, otherwise the faulty
8 // code gets optimized out:
9 // compile-flags: -Cno-prepopulate-passes -Cpasses=name-anon-globals
11 extern crate issue_38226_aux;
14 issue_38226_aux::foo::<()>();