summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/AsmParser/assembler-expressions-fail.s
blob: dd6fe929b68e756b70c5fc28eda3aaae8cf7af0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# RUN: not llvm-mc -triple x86_64-unknown-unknown %s 2>&1 | FileCheck %s --check-prefix=ERR
# RUN: not llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s 2>&1 | FileCheck %s --check-prefix=ERR
	
.text

test2:	
	jmp baz
# ERR: [[@LINE+1]]:5: error: expected absolute expression
.if . - text2 == 1
	nop
.else
	ret
.endif
	push fs

# No additional errors.
#	
# 	ERR-NOT: {{[0-9]+}}:{{[0-9]+}}: error:	
OpenPOWER on IntegriCloud