2 // We specify -C incremental here because we want to test the partitioning for
3 // incremental compilation
4 // compile-flags:-Zprint-mono-items=eager -Cincremental=tmp/partitioning-tests/extern-generic -Zshare-generics=y
9 // aux-build:cgu_generic_function.rs
10 extern crate cgu_generic_function;
12 //~ MONO_ITEM fn user @@ extern_generic[Internal]
14 let _ = cgu_generic_function::foo("abc");
18 use cgu_generic_function;
20 //~ MONO_ITEM fn mod1::user @@ extern_generic-mod1[Internal]
22 let _ = cgu_generic_function::foo("abc");
26 use cgu_generic_function;
28 //~ MONO_ITEM fn mod1::mod1::user @@ extern_generic-mod1-mod1[Internal]
30 let _ = cgu_generic_function::foo("abc");
36 use cgu_generic_function;
38 //~ MONO_ITEM fn mod2::user @@ extern_generic-mod2[Internal]
40 let _ = cgu_generic_function::foo("abc");
45 //~ MONO_ITEM fn mod3::non_user @@ extern_generic-mod3[Internal]
49 // Make sure the two generic functions from the extern crate get instantiated
50 // once for the current crate
51 //~ MONO_ITEM fn cgu_generic_function::foo::<&str> @@ cgu_generic_function-in-extern_generic.volatile[External]
52 //~ MONO_ITEM fn cgu_generic_function::bar::<&str> @@ cgu_generic_function-in-extern_generic.volatile[External]