scc

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

commit a523a8d010c6351d0a5688e7cda7702139b085b6
parent 1c3d21168c86e5fddc2bf41dd41f6a89e62c93e9
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 21 Jan 2024 12:05:18 +0100

tests/make: Add 0087-rule test

Diffstat:
Atests/make/execute/0087-rule.sh | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0087-rule.sh b/tests/make/execute/0087-rule.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo '#error line' >$tmp2 + +scc-make -f- <<'EOF' > $tmp1 2>&1 +all: + @echo '#error line' +EOF + +diff $tmp1 $tmp2