scc

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

commit 5d6115ef6296350ff6d1574f23193039a7661f0d
parent 3bdea380d5d646793141576f6122ca32de4b5240
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat, 20 Jan 2024 23:03:45 +0100

tests/make: Add 0074-macro test

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

diff --git a/tests/make/execute/0074-macro.sh b/tests/make/execute/0074-macro.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo CC=c99 > $tmp2 + +CC=dcc scc-make -f- <<'EOF' > $tmp1 2>&1 +all: + @echo CC=$(CC) +EOF + +diff $tmp1 $tmp2