scc

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

commit 18e63ac4d4a253869e5543a84dc115b95b0d72ef
parent 9b42cfb3978558612365a9711fdb0df713a53706
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 19 Jan 2025 09:58:27 +0100

tests/make: Add 0106-inference.sh

Diffstat:
Atests/make/execute/0106-inference.sh | 21+++++++++++++++++++++
1 file changed, 21 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0106-inference.sh b/tests/make/execute/0106-inference.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +trap 'rm -f f.? $tmp1 $tmp2 $tmp3 f.?' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat >$tmp1<<EOF +c99 -O -c f.c +EOF + +touch -d '1970-01-01 00:00:01' f.c +touch -d '1970-01-01 00:00:02' f.o +touch -d '1970-01-01 00:00:03' f.h +scc make -f - <<'EOF' > $tmp2 2>&1 +f.o: f.h + +all: f.o +EOF + +diff $tmp1 $tmp2