1 2 3 4 5 6 7 8
// run-pass // compile-flags: -C relocation-model=pic // needs-relocation-model-pic #![feature(cfg_relocation_model)] #[cfg(relocation_model = "pic")] fn main() {}