xref: /llvm-project/llvm/test/tools/llvm-ml/align_errors.asm (revision c8d0d8a8a16e52bc0d6856f36065f46da19b1713)
1*c8d0d8a8SEric Astor; RUN: not llvm-ml -filetype=s %s /Fo /dev/null 2>&1 | FileCheck %s --implicit-check-not=error:
2*c8d0d8a8SEric Astor
3*c8d0d8a8SEric Astor.data
4*c8d0d8a8SEric Astororg_struct STRUCT
5*c8d0d8a8SEric Astor  x BYTE ?
6*c8d0d8a8SEric Astor  x_succ BYTE ?
7*c8d0d8a8SEric Astor  ORG 15
8*c8d0d8a8SEric Astor  y BYTE ?
9*c8d0d8a8SEric Astor  y_succ BYTE ?
10*c8d0d8a8SEric Astor
11*c8d0d8a8SEric Astor; CHECK: :[[# @LINE + 1]]:7: error: expected non-negative value in struct's 'org' directive; was -4
12*c8d0d8a8SEric Astor  ORG -4
13*c8d0d8a8SEric Astor
14*c8d0d8a8SEric Astor  z BYTE ?
15*c8d0d8a8SEric Astor  z_succ BYTE ?
16*c8d0d8a8SEric Astororg_struct ENDS
17*c8d0d8a8SEric Astor
18*c8d0d8a8SEric Astor; CHECK: :[[# @LINE + 1]]:16: error: cannot initialize a value of type 'org_struct'; 'org' was used in the type's declaration
19*c8d0d8a8SEric Astorx org_struct <>
20*c8d0d8a8SEric Astor
21*c8d0d8a8SEric Astorend
22