scc

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

commit 5f23619bd095d0a7069356eff28bb6623be0dded
parent ec64220d94408047b2a79f2021f51807fdbd5b07
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 10 Jan 2025 21:34:19 +0100

tests/make: Add execute/0104-env.sh

Diffstat:
Atests/make/execute/0104-env.sh | 20++++++++++++++++++++
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/tests/make/execute/0104-env.sh b/tests/make/execute/0104-env.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +export CFLAGS=World + +trap 'rm -f $tmp1 $tmp2' EXIT INT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat > $tmp1 <<EOF +Hello World +EOF + +scc make -f - <<'EOF' > $tmp2 2>&1 +FLAGS=Hello $(CFLAGS) +all: + @echo Hello $(CFLAGS) +EOF + +diff $tmp1 $tmp2