scc

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

commit c4597d8ae1298e3bab5cc694f15d7fca8c721246
parent d152a4a42c9638c249e12d651919486a682661bc
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 15 Nov 2021 19:35:21 +0100

tests/cc: Add 0191-ary-addr.c test

Diffstat:
Atests/cc/execute/0191-ary-addr.c | 14++++++++++++++
Mtests/cc/execute/scc-tests.lst | 1+
2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/tests/cc/execute/0191-ary-addr.c b/tests/cc/execute/0191-ary-addr.c @@ -0,0 +1,14 @@ +static const char *bla[] = { "a", "b" }; + +void +fn(const void *v) +{ +} + +int +main(void) +{ + fn(&bla); + + return 0; +} diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -181,3 +181,4 @@ 0188-multi-string.c [TODO] 0189-cpp-no.c [TODO] 0190-enum-ary.c [TODO] +0191-ary-addr.c [TODO]