scc

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

commit 50e4822d0ac32ff97e24446d673b11ab21f6699a
parent 1a83b7b7311b8944a34d8e16ad9aa22aa7a4a051
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  6 Apr 2018 13:43:23 +0100

[tests/scc] Add test for macro expansion in #include

Diffstat:
Atests/scc/execute/0178-include.c | 9+++++++++
Atests/scc/execute/0178-include.h | 2++
Mtests/scc/execute/scc-tests.lst | 1+
3 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/tests/scc/execute/0178-include.c b/tests/scc/execute/0178-include.c @@ -0,0 +1,9 @@ + +#define FILE "0178-include.h" +#include FILE + +int +main() +{ + return RET; +} diff --git a/tests/scc/execute/0178-include.h b/tests/scc/execute/0178-include.h @@ -0,0 +1,2 @@ + +#define RET 0 diff --git a/tests/scc/execute/scc-tests.lst b/tests/scc/execute/scc-tests.lst @@ -168,3 +168,4 @@ 0175-defined.c [TODO] 0176-macro.c [TODO] 0177-literal.c [TODO] +0178-include.c [TODO]