mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-07-24 10:25:42 -04:00
test: nasm-t -- Add align13s test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
750bc50aa8
commit
2a34d0287e
17
travis/test/align13s.asm
Normal file
17
travis/test/align13s.asm
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
; Test of non-power-of-2 alignment
|
||||||
|
|
||||||
|
%use smartalign
|
||||||
|
|
||||||
|
bits 32
|
||||||
|
|
||||||
|
inc eax
|
||||||
|
inc eax
|
||||||
|
align 13
|
||||||
|
inc eax
|
||||||
|
inc eax
|
||||||
|
align 13
|
||||||
|
inc eax
|
||||||
|
inc eax
|
||||||
|
align 13
|
||||||
|
inc eax
|
||||||
|
inc eax
|
25
travis/test/align13s.json
Normal file
25
travis/test/align13s.json
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"description": "Test of non-power-of-2 smart-alignment (-Ox)",
|
||||||
|
"id": "align13s",
|
||||||
|
"format": "bin",
|
||||||
|
"source": "align13s.asm",
|
||||||
|
"option": "-Ox -o align13s.bin",
|
||||||
|
"target": [
|
||||||
|
{ "stderr": "align13s.stderr" }
|
||||||
|
],
|
||||||
|
"error": "expected"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Test of non-power-of-2 smart-alignment (-O1)",
|
||||||
|
"ref": "align13s",
|
||||||
|
"option": "-O1 -o align13s.bin",
|
||||||
|
"update": "false"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Test of non-power-of-2 smart-alignment (-O0)",
|
||||||
|
"ref": "align13s",
|
||||||
|
"option": "-O0 -o align13s.bin",
|
||||||
|
"update": "false"
|
||||||
|
}
|
||||||
|
]
|
3
travis/test/align13s.stderr
Normal file
3
travis/test/align13s.stderr
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
./travis/test/align13s.asm:9: error: segment alignment `13' is not power of two
|
||||||
|
./travis/test/align13s.asm:12: error: segment alignment `13' is not power of two
|
||||||
|
./travis/test/align13s.asm:15: error: segment alignment `13' is not power of two
|
Loading…
x
Reference in New Issue
Block a user