]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/sepcomp/sepcomp-fns-backwards.rs
3 // compile-flags: -C codegen-units=3
5 // Test references to items that haven't been codegened yet.
7 // Generate some code in the first compilation unit before declaring any
8 // modules. This ensures that the first module doesn't go into the same
9 // compilation unit as the top-level module.
11 fn pad() -> usize { 0 }
14 pub fn three() -> usize {
20 pub fn two() -> usize {
31 assert_eq
!(a
::two(), 2);
32 assert_eq
!(b
::three(), 3);