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