scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 6a75f6a566a59b7539d8bf076113f2eaf1c8e3e1
parent 18fe95dfa546b5adfbf5580e5beb31c8d145507b
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 12 Mar 2018 21:40:51 +0100

[tests/nm] Add moretests for z80

Diffstat:
Atests/nm/execute/0006-z80-o.sh | 33+++++++++++++++++++++++++++++++++
Atests/nm/execute/0007-z80-d.sh | 33+++++++++++++++++++++++++++++++++
Atests/nm/execute/0008-z80-x.sh | 33+++++++++++++++++++++++++++++++++
3 files changed, 99 insertions(+), 0 deletions(-)

diff --git a/tests/nm/execute/0006-z80-o.sh b/tests/nm/execute/0006-z80-o.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +tmp1=`mktemp` +tmp2=`mktemp` +#trap "rm -f $tmp1 $tmp2" 0 2 3 + +nm -t o z80.out > $tmp1 + +cat <<! > $tmp2 +0000000000000000 b .bss +0000000000000000 d .data +0000000000000000 t .text +0000000000000001 B averylongbss +0000000000000001 D averylongdata +0000000000000001 T averylongtext +0000000000000000 B bss1 +0000000000000002 b bss3 +0000000000000012 C bss4 +0000000000000022 C bss5 +0000000000000000 D data1 +0000000000000002 d data3 +0000000000000012 C data4 +0000000000000022 C data5 +0000000000000000 T text1 +0000000000000002 t text3 +0000000000000012 C text4 +0000000000000022 C text5 + U text6 +! + +diff $tmp1 $tmp2 diff --git a/tests/nm/execute/0007-z80-d.sh b/tests/nm/execute/0007-z80-d.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +tmp1=`mktemp` +tmp2=`mktemp` +trap "rm -f $tmp1 $tmp2" 0 2 3 + +nm -t d z80.out > $tmp1 + +cat <<! > $tmp2 +0000000000000000 b .bss +0000000000000000 d .data +0000000000000000 t .text +0000000000000001 B averylongbss +0000000000000001 D averylongdata +0000000000000001 T averylongtext +0000000000000000 B bss1 +0000000000000002 b bss3 +0000000000000010 C bss4 +0000000000000018 C bss5 +0000000000000000 D data1 +0000000000000002 d data3 +0000000000000010 C data4 +0000000000000018 C data5 +0000000000000000 T text1 +0000000000000002 t text3 +0000000000000010 C text4 +0000000000000018 C text5 + U text6 +! + +diff $tmp1 $tmp2 diff --git a/tests/nm/execute/0008-z80-x.sh b/tests/nm/execute/0008-z80-x.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +set -e + +tmp1=`mktemp` +tmp2=`mktemp` +trap "rm -f $tmp1 $tmp2" 0 2 3 + +nm -t x z80.out > $tmp1 + +cat <<! > $tmp2 +0000000000000000 b .bss +0000000000000000 d .data +0000000000000000 t .text +0000000000000001 B averylongbss +0000000000000001 D averylongdata +0000000000000001 T averylongtext +0000000000000000 B bss1 +0000000000000002 b bss3 +000000000000000a C bss4 +0000000000000012 C bss5 +0000000000000000 D data1 +0000000000000002 d data3 +000000000000000a C data4 +0000000000000012 C data5 +0000000000000000 T text1 +0000000000000002 t text3 +000000000000000a C text4 +0000000000000012 C text5 + U text6 +! + +diff $tmp1 $tmp2