scc

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

commit 6d8bae308fef0e3a0c6678a61fb375733e30e535
parent 7bbc5bd716eb3099105659ce33cfc02448e723d2
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2024 21:01:05 +0100

tests/make: Add 0045-comment

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

diff --git a/tests/make/execute/0045-comment.sh b/tests/make/execute/0045-comment.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT QUIT TERM QUIT + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat > $tmp2 <<EOF +make: error: don't know how to make target1 +EOF + +scc-make -f - target1 <<EOF > $tmp1 2>&1 +#esto es un comentario \ +target1: ; echo hello +target2: ; echo bye +EOF + +diff $tmp1 $tmp2