scc

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

commit ba45b797ed7a87840029720f7386e901fbf022dc
parent a2655e559ece2774283f4f93a47dd9872e4bde77
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sun, 21 Jan 2024 12:06:16 +0100

tests/make: Add 0090-comment

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

diff --git a/tests/make/execute/0090-comment.sh b/tests/make/execute/0090-comment.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +trap 'rm -f $tmp1 $tmp2' EXIT INT TERM QUIT HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +cat >$tmp2 <<EOF +Hello World! +EOF + +scc-make -f- <<'EOF' > $tmp1 2>&1 +all: # This is a comment + @echo Hello World! +EOF + +diff $tmp1 $tmp2