Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
fd1a263fc7029b06a8f041feadbcc85c65b0a6e8
rust/tests/ui/asm/issue-72570.rs

11 lines
183 B
Rust
Raw Normal View History

Add inline asm! tests for aarch64 Enable tests which are largely architecture-independent on all supported platforms
2021-06-24 14:01:49 +00:00
// needs-asm-support
Fix test
2020-05-26 11:27:27 +01:00
Stabilize asm! and global_asm! They are also removed from the prelude as per the decision in https://github.com/rust-lang/rust/issues/87228. stdarch and compiler-builtins are updated to work with the new, stable asm! and global_asm! macros.
2021-12-10 00:15:33 +00:00
use std::arch::asm;
Eagerly lower asm sub-expressions to HIR even if there is an error Fixes #72570
2020-05-26 11:04:34 +01:00
fn main() {
unsafe {
asm!("", in("invalid") "".len());
Fix test
2020-05-26 11:27:27 +01:00
//~^ ERROR: invalid register `invalid`: unknown register
Eagerly lower asm sub-expressions to HIR even if there is an error Fixes #72570
2020-05-26 11:04:34 +01:00
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 806ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API