Skip to content

Commit f4dfc61

Browse files
committed
Add more to duplicate options test
1 parent b00b1a4 commit f4dfc61

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

src/test/ui/asm/duplicate-options.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,12 @@ fn main() {
1414
//~^ ERROR the `nostack` option was already provided
1515
//~| ERROR the `nostack` option was already provided
1616
//~| ERROR the `nostack` option was already provided
17+
asm!(
18+
"",
19+
options(nomem, noreturn),
20+
options(att_syntax, noreturn), //~ ERROR the `noreturn` option was already provided
21+
options(nomem, nostack), //~ ERROR the `nomem` option was already provided
22+
options(noreturn), //~ ERROR the `noreturn` option was already provided
23+
);
1724
}
1825
}

src/test/ui/asm/duplicate-options.stderr

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,23 @@ error: the `nostack` option was already provided
3434
LL | asm!("", options(nostack, nostack), options(nostack), options(nostack));
3535
| ^^^^^^^ help: remove this option
3636

37-
error: aborting due to 6 previous errors
37+
error: the `noreturn` option was already provided
38+
--> $DIR/duplicate-options.rs:20:33
39+
|
40+
LL | options(att_syntax, noreturn),
41+
| ^^^^^^^^ help: remove this option
42+
43+
error: the `nomem` option was already provided
44+
--> $DIR/duplicate-options.rs:21:21
45+
|
46+
LL | options(nomem, nostack),
47+
| ^^^^^ help: remove this option
48+
49+
error: the `noreturn` option was already provided
50+
--> $DIR/duplicate-options.rs:22:21
51+
|
52+
LL | options(noreturn),
53+
| ^^^^^^^^ help: remove this option
54+
55+
error: aborting due to 9 previous errors
3856

0 commit comments

Comments
 (0)