From cc1129093d87b47e9d0a30146f9a0c78a96774e4 Mon Sep 17 00:00:00 2001 From: dannye <33dannye@gmail.com> Date: Sun, 21 Feb 2021 23:28:42 -0600 Subject: [PATCH] Add duplicate-section test --- test/asm/duplicate-section.asm | 4 ++++ test/asm/duplicate-section.err | 4 ++++ test/asm/duplicate-section.out | 0 3 files changed, 8 insertions(+) create mode 100644 test/asm/duplicate-section.asm create mode 100644 test/asm/duplicate-section.err create mode 100644 test/asm/duplicate-section.out diff --git a/test/asm/duplicate-section.asm b/test/asm/duplicate-section.asm new file mode 100644 index 00000000..2013f832 --- /dev/null +++ b/test/asm/duplicate-section.asm @@ -0,0 +1,4 @@ + +SECTION "sec", ROM0 + +SECTION "sec", ROM0 diff --git a/test/asm/duplicate-section.err b/test/asm/duplicate-section.err new file mode 100644 index 00000000..3d766a39 --- /dev/null +++ b/test/asm/duplicate-section.err @@ -0,0 +1,4 @@ +ERROR: duplicate-section.asm(4): + Section already defined previously +FATAL: duplicate-section.asm(4): + Cannot create section "sec" (1 error) diff --git a/test/asm/duplicate-section.out b/test/asm/duplicate-section.out new file mode 100644 index 00000000..e69de29b