Rollup merge of #101369 - compiler-errors:global-asm-pprint, r=jackh726

Fix `global_asm` macro pretty printing

Fixes #101051
Fixes #101047
This commit is contained in:
Matthias Krüger 2022-09-04 00:20:43 +02:00 committed by GitHub
commit a3dda51438
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,3 @@
// check-pass
// compile-flags: -Zunpretty=expanded
core::arch::global_asm!("x: .byte 42");

View file

@ -0,0 +1,9 @@
#![feature(prelude_import)]
#![no_std]
#[prelude_import]
use ::std::prelude::rust_2015::*;
#[macro_use]
extern crate std;
// check-pass
// compile-flags: -Zunpretty=expanded
global_asm! ("x: .byte 42");