scc

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

commit 5bc7bb1f3cf169af352e9afea2c14fa03b5567ee
parent 7f10d5f134cd84a665e3add7ffc47f329238b055
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 18:54:30 +0100

tests/make: Add 0067-macro test

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

diff --git a/tests/make/execute/0067-macro.sh b/tests/make/execute/0067-macro.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Hello World! > $tmp2 + +scc-make -f- <<'EOF' > $tmp1 2>&1 +F = World +G = Hello + +all: + @echo $G $(F)! +EOF + +diff $tmp1 $tmp2