0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00

travis: add timesneg

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov
2020-10-10 16:47:36 +03:00
parent bbed2ce3ce
commit 985f30df21
3 changed files with 18 additions and 0 deletions

3
travis/test/timesneg.asm Normal file
View File

@@ -0,0 +1,3 @@
bits 32
times -1 db 0
times -1 incbin "./travis/test/timesneg.asm"

13
travis/test/timesneg.json Normal file
View File

@@ -0,0 +1,13 @@
[
{
"description": "Test negative TIMES value",
"id": "timesneg",
"format": "bin",
"source": "timesneg.asm",
"option": "-Ox",
"target": [
{ "stderr": "timesneg.stderr" }
],
"error": "expected"
}
]

View File

@@ -0,0 +1,2 @@
./travis/test/timesneg.asm:2: error: TIMES value -1 is negative
./travis/test/timesneg.asm:3: error: TIMES value -1 is negative