about summary refs log tree commit diff
path: root/tests/ui/asm/parse-error.rs
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2023-12-27 22:57:17 +0000
committerGary Guo <gary@garyguo.net>2024-02-24 19:49:16 +0000
commit4677a71369f690b5aecf9380cf12074792f09a3f (patch)
tree80f9f938951ab256dcd1ff4c3d8c5b942d125143 /tests/ui/asm/parse-error.rs
parent31f078ea9941ce89f1f5ab5fb1239bbbddfe4d49 (diff)
downloadrust-4677a71369f690b5aecf9380cf12074792f09a3f.tar.gz
rust-4677a71369f690b5aecf9380cf12074792f09a3f.zip
Add tests for asm goto
Diffstat (limited to 'tests/ui/asm/parse-error.rs')
-rw-r--r--tests/ui/asm/parse-error.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/asm/parse-error.rs b/tests/ui/asm/parse-error.rs
index 6f32293511b..a0251c6763b 100644
--- a/tests/ui/asm/parse-error.rs
+++ b/tests/ui/asm/parse-error.rs
@@ -142,3 +142,5 @@ global_asm!(format!("{{{}}}", 0), const FOO);
 //~^ ERROR asm template must be a string literal
 global_asm!("{1}", format!("{{{}}}", 0), const FOO, const BAR);
 //~^ ERROR asm template must be a string literal
+global_asm!("{}", label {});
+//~^ ERROR expected operand, options, or additional template string