@@ -36,38 +36,47 @@ LL | asm!("{}", out(reg) foo, clobber_abi("C"));
3636 | |
3737 | generic outputs
3838
39+ error: asm with `clobber_abi` must specify explicit registers for outputs
40+ --> $DIR/bad-options.rs:24:20
41+ |
42+ LL | asm!("{}", out(reg) foo, clobber_abi("C"), clobber_abi("C"));
43+ | ^^^^^^^^^^^^ ---------------- ---------------- clobber_abi
44+ | | |
45+ | | clobber_abi
46+ | generic outputs
47+
3948error: expected one of `)`, `att_syntax`, or `raw`, found `nomem`
40- --> $DIR/bad-options.rs:28 :25
49+ --> $DIR/bad-options.rs:30 :25
4150 |
4251LL | global_asm!("", options(nomem));
4352 | ^^^^^ expected one of `)`, `att_syntax`, or `raw`
4453
4554error: expected one of `)`, `att_syntax`, or `raw`, found `readonly`
46- --> $DIR/bad-options.rs:30 :25
55+ --> $DIR/bad-options.rs:32 :25
4756 |
4857LL | global_asm!("", options(readonly));
4958 | ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
5059
5160error: expected one of `)`, `att_syntax`, or `raw`, found `noreturn`
52- --> $DIR/bad-options.rs:32 :25
61+ --> $DIR/bad-options.rs:34 :25
5362 |
5463LL | global_asm!("", options(noreturn));
5564 | ^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
5665
5766error: expected one of `)`, `att_syntax`, or `raw`, found `pure`
58- --> $DIR/bad-options.rs:34 :25
67+ --> $DIR/bad-options.rs:36 :25
5968 |
6069LL | global_asm!("", options(pure));
6170 | ^^^^ expected one of `)`, `att_syntax`, or `raw`
6271
6372error: expected one of `)`, `att_syntax`, or `raw`, found `nostack`
64- --> $DIR/bad-options.rs:36 :25
73+ --> $DIR/bad-options.rs:38 :25
6574 |
6675LL | global_asm!("", options(nostack));
6776 | ^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
6877
6978error: expected one of `)`, `att_syntax`, or `raw`, found `preserves_flags`
70- --> $DIR/bad-options.rs:38 :25
79+ --> $DIR/bad-options.rs:40 :25
7180 |
7281LL | global_asm!("", options(preserves_flags));
7382 | ^^^^^^^^^^^^^^^ expected one of `)`, `att_syntax`, or `raw`
@@ -80,5 +89,5 @@ LL | asm!("", clobber_abi("foo"));
8089 |
8190 = note: the following ABIs are supported on this target: `C`, `system`, `efiapi`, `win64`, `sysv64`
8291
83- error: aborting due to 13 previous errors
92+ error: aborting due to 14 previous errors
8493
0 commit comments