scc

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

commit c36980c4adf8efb8c9b9b439c68482685e378d11
parent e2c7cc44bf41420d422849b52acdd35158630d8a
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 18 Jan 2024 15:52:47 +0100

tests/make: Add 0041-comment test

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

diff --git a/tests/make/execute/0041-comment.sh b/tests/make/execute/0041-comment.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +trap 'rm $tmp1 $tmp2' EXIT INT QUIT TERM HUP + +tmp1=tmp1.$$ +tmp2=tmp2.$$ + +echo Hello World! > $tmp2 + +scc-make -f - <<'EOF' > $tmp1 +# full line comment +all: + @echo Hello World! +EOF + +diff $tmp1 $tmp2