mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
4082cce59d
Switch to OptParser for command-line handling Reviewed By: thakis Differential Revision: https://reviews.llvm.org/D90058
28 lines
431 B
NASM
28 lines
431 B
NASM
; RUN: not llvm-ml -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s --dump-input=always
|
|
|
|
.data
|
|
|
|
FOO STRUCT
|
|
dword_field DWORD 3
|
|
byte_field BYTE 4 DUP (1)
|
|
FOO ENDS
|
|
|
|
var FOO <>
|
|
|
|
.code
|
|
|
|
t1 PROC
|
|
|
|
mov eax, var.byte_field
|
|
; CHECK: error: invalid operand for instruction
|
|
|
|
mov eax, [var].byte_field
|
|
; CHECK: error: invalid operand for instruction
|
|
|
|
mov eax, [var.byte_field]
|
|
; CHECK: error: invalid operand for instruction
|
|
|
|
t1 ENDP
|
|
|
|
END
|