mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-08 21:28:33 +00:00
12 lines
268 B
Rust
12 lines
268 B
Rust
// Ensure that we don't ICE when constructing the fake MIR body for a global
|
|
// asm when the body has errors. See #137470.
|
|
|
|
//@ needs-asm-support
|
|
|
|
use std::arch::global_asm;
|
|
|
|
global_asm!("/* {} */", sym a);
|
|
//~^ ERROR cannot find value `a` in this scope
|
|
|
|
fn main() {}
|