scc

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

commit 43e7e49b2686b39cac4695343ae4ee8452645f93
parent e93cc85f10242a94369266eea442dfe6f12c375d
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Sat,  5 Nov 2022 08:48:12 +0100

test/cc: Add execute/0216-initialize.c

Diffstat:
Atests/cc/execute/0216-initialize.c | 12++++++++++++
Mtests/cc/execute/scc-tests.lst | 1+
2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/tests/cc/execute/0216-initialize.c b/tests/cc/execute/0216-initialize.c @@ -0,0 +1,12 @@ +#include <stdio.h> + +char *plumbercmd = "mspaint.exe"; + +int +main(void) +{ + char *cmd[] = { plumbercmd, NULL, NULL }; + cmd[1] = "bla"; + + return 0; +} diff --git a/tests/cc/execute/scc-tests.lst b/tests/cc/execute/scc-tests.lst @@ -206,3 +206,4 @@ 0213-decay.c [TODO] 0214-va_copy.c 0215-ret_struct.c +0216-initialize.c [TODO]