about summary refs log tree commit diff
path: root/src/test/ui/asm/asm-parse-errors.stderr
blob: 9fe59d12e12cd3ca61c1687bcb77b560b42867fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
error: macro requires a string literal as an argument
  --> $DIR/asm-parse-errors.rs:4:5
   |
LL |     asm!();
   |     ^^^^^^^ string literal required

error: expected string literal
  --> $DIR/asm-parse-errors.rs:5:18
   |
LL |     asm!("nop" : struct);
   |                  ^^^^^^ expected string literal

error: expected string literal
  --> $DIR/asm-parse-errors.rs:6:30
   |
LL |     asm!("mov %eax, $$0x2" : struct);
   |                              ^^^^^^ expected string literal

error: expected `(`, found keyword `struct`
  --> $DIR/asm-parse-errors.rs:7:39
   |
LL |     asm!("mov %eax, $$0x2" : "={eax}" struct);
   |                                       ^^^^^^ expected `(`

error: expected expression, found keyword `struct`
  --> $DIR/asm-parse-errors.rs:8:39
   |
LL |     asm!("mov %eax, $$0x2" : "={eax}"(struct));
   |                                       ^^^^^^ expected expression

error: expected string literal
  --> $DIR/asm-parse-errors.rs:9:44
   |
LL |     asm!("in %dx, %al" : "={al}"(result) : struct);
   |                                            ^^^^^^ expected string literal

error: expected `(`, found keyword `struct`
  --> $DIR/asm-parse-errors.rs:10:51
   |
LL |     asm!("in %dx, %al" : "={al}"(result) : "{dx}" struct);
   |                                                   ^^^^^^ expected `(`

error: expected expression, found keyword `struct`
  --> $DIR/asm-parse-errors.rs:11:51
   |
LL |     asm!("in %dx, %al" : "={al}"(result) : "{dx}"(struct));
   |                                                   ^^^^^^ expected expression

error: expected string literal
  --> $DIR/asm-parse-errors.rs:12:36
   |
LL |     asm!("mov $$0x200, %eax" : : : struct);
   |                                    ^^^^^^ expected string literal

error: expected string literal
  --> $DIR/asm-parse-errors.rs:13:45
   |
LL |     asm!("mov eax, 2" : "={eax}"(foo) : : : struct);
   |                                             ^^^^^^ expected string literal

error: inline assembly must be a string literal
  --> $DIR/asm-parse-errors.rs:14:10
   |
LL |     asm!(123);
   |          ^^^

error: aborting due to 11 previous errors