diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2020-07-12 14:04:44 +0300 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2020-07-12 06:01:51 -0700 |
commit | f1cf95480d9df9e7854a4be6844f86ff854e03d2 (patch) | |
tree | 6cce39b468529bfcd585ba6be3fa33fe6ff0fed5 | |
parent | 65c6ba87166e3dd1143cc399ef535aa86145a450 (diff) | |
download | nasm-f1cf95480d9df9e7854a4be6844f86ff854e03d2.tar.gz |
travis: weirdpaste -- add nil dereference test
To address BR 3392696
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r-- | travis/test/weirdpaste.asm | 10 | ||||
-rw-r--r-- | travis/test/weirdpaste.bin.t | bin | 42 -> 45 bytes | |||
-rw-r--r-- | travis/test/weirdpaste.i.t | 10 |
3 files changed, 20 insertions, 0 deletions
diff --git a/travis/test/weirdpaste.asm b/travis/test/weirdpaste.asm index 353ef8a8..e43d855e 100644 --- a/travis/test/weirdpaste.asm +++ b/travis/test/weirdpaste.asm @@ -24,3 +24,13 @@ %define N 1e%++%+ 5 dd N, 1e+5 + +; +; test nil dereference, since we're +; modifying with %line keep it last +; in the file +; +; BR 3392696 +; +%line 1 "`weirdpaste.asm" +mov eax, eax diff --git a/travis/test/weirdpaste.bin.t b/travis/test/weirdpaste.bin.t Binary files differindex db0468ed..23061d3d 100644 --- a/travis/test/weirdpaste.bin.t +++ b/travis/test/weirdpaste.bin.t diff --git a/travis/test/weirdpaste.i.t b/travis/test/weirdpaste.i.t index bf2acd6c..1df996dc 100644 --- a/travis/test/weirdpaste.i.t +++ b/travis/test/weirdpaste.i.t @@ -21,3 +21,13 @@ dd 1e+5, 1e+5 + + + + + + + + +%line 2+1 '`weirdpaste.asm' +mov eax, eax |