aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-ml/alias_errors.asm
blob: 7c30b8e261a200cc26f1ef3ab726d19775788be2 (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
; RUN: not llvm-ml -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s

.code

foo PROC
  ret
foo ENDP

bar PROC
  ret
bar ENDP

t1:
alias foo = bar
alias foo = <bar>
alias <foo> = bar

; CHECK: error: expected <aliasName>
; CHECK: error: expected <aliasName>
; CHECK: error: expected <actualName>

t2:
alias <foo> <bar>
alias <foo>, <bar>

; CHECK: error: unexpected token in alias directive
; CHECK: error: unexpected token in alias directive

t3:
alias <foo = bar>
alias <foo = bar

; CHECK: error: unexpected token in alias directive
; CHECK: error: expected <aliasName>

END