mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
7dfafaa71e
Support @Version and @Line as built-in symbols. For now, resolves @Version to 1427 (the same as for the VS 2019 release of ML.EXE). Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D104964
19 lines
445 B
NASM
19 lines
445 B
NASM
; RUN: not llvm-ml -filetype=s %s /Fo - 2>&1 | FileCheck %s --implicit-check-not=error:
|
|
|
|
.data
|
|
|
|
; <var> EQU <expression> can't be redefined to a new value
|
|
equated_number equ 3
|
|
; CHECK: :[[# @LINE + 1]]:21: error: invalid variable redefinition
|
|
equated_number equ 4
|
|
|
|
; CHECK: :[[# @LINE + 1]]:1: error: cannot redefine a built-in symbol
|
|
@Line equ 5
|
|
|
|
; CHECK: :[[# @LINE + 1]]:1: error: cannot redefine a built-in symbol
|
|
@Version equ 6
|
|
|
|
.code
|
|
|
|
end
|