scc

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

commit aad7b6881f9e5330d11a6e1fcdbf388506d617e9
parent 89dfd138a9731b37ad50d2b1e7bcc1aacc6d1cb8
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri, 19 Jan 2024 13:38:21 +0100

tests/make: Add 0057-default test

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

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