1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/tools/llvm-ml/alias_errors.asm
Eric Astor 4082cce59d [ms] [llvm-ml] Introduce command-line compatibility for ml.exe and ml64.exe
Switch to OptParser for command-line handling

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D90058
2020-12-01 17:43:44 -05:00

36 lines
576 B
NASM

; 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