summaryrefslogtreecommitdiff
path: root/test/full-pipeline/should-pass/002-nops.asm
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2019-08-11 17:22:20 +1200
committerDavid Phillips <david@sighup.nz>2019-08-11 17:22:20 +1200
commit2d2628df0001d2b643811dc69717c4afe70c4e31 (patch)
treef5d0da23c47c3e677ca423a91838c5ad5467a5d9 /test/full-pipeline/should-pass/002-nops.asm
parent0e6f47211a0516cf2c96d2b9e89c0d841978c143 (diff)
downloadtoy-cpu-assembler-2d2628df0001d2b643811dc69717c4afe70c4e31.tar.xz
Fix and add tests for NULL deref cases found by scan-build
Diffstat (limited to 'test/full-pipeline/should-pass/002-nops.asm')
-rw-r--r--test/full-pipeline/should-pass/002-nops.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/full-pipeline/should-pass/002-nops.asm b/test/full-pipeline/should-pass/002-nops.asm
new file mode 100644
index 0000000..45a3cbf
--- /dev/null
+++ b/test/full-pipeline/should-pass/002-nops.asm
@@ -0,0 +1,12 @@
+nop
+nop
+nop
+nop
+add $0, $0, $0
+nop
+bn 0
+nop
+nop
+jn $0
+nop
+nop