mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
c0394c8ac0
This way is possible to write inline assembly code aware of it.
10 lines
179 B
Rust
10 lines
179 B
Rust
// run-pass
|
|
// compile-flags: -C relocation-model=pic
|
|
// ignore-emscripten no pic
|
|
// ignore-wasm
|
|
|
|
#![feature(cfg_relocation_model)]
|
|
|
|
#[cfg(relocation_model = "pic")]
|
|
fn main() {}
|