-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests where asm! is properly in unsafe block
- Loading branch information
Showing
7 changed files
with
235 additions
and
26 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/test/ui/asm/bad-arch.stderr → src/test/ui/asm/bad-arch.mirunsafeck.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
error[E0472]: inline assembly is unsupported on this target | ||
--> $DIR/bad-arch.rs:22:9 | ||
| | ||
LL | asm!(""); | ||
| ^^^^^^^^^ | ||
|
||
error[E0472]: inline assembly is unsupported on this target | ||
--> $DIR/bad-arch.rs:27:1 | ||
| | ||
LL | global_asm!(""); | ||
| ^^^^^^^^^^^^^^^^ | ||
| | ||
= note: this error originates in the macro `global_asm` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
|
||
error: aborting due to 2 previous errors | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.