about summary refs log tree commit diff
path: root/src/test/ui/llvm-asm/llvm-asm-parse-errors.stderr
blob: 1fd46809f3eedcf64696f065e82623546096f8b9 (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/llvm-asm-parse-errors.rs:4:5
   |
LL |     llvm_asm!();
   |     ^^^^^^^^^^^^ string literal required

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

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

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

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

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

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

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

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

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

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

error: aborting due to 11 previous errors