scc

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

commit a237a1813e294b9c3a41d4e06c2f5d678b194a28
parent 02280ce31580e794f4aba3e3bf4d6d91c391ae3b
Author: Roberto E. Vargas Caballero <roberto.vargas@igrid-td.com>
Date:   Mon, 26 Sep 2016 12:51:22 +0200

[tests] Fix 0041-queen.c

The function Go was of type int, but it was not returning anything,
although the returned value was not used for anything, so the
behaviour of this function is totally defined. At this moment
QBE does not support returning from a function that return something
without returning something, and since it is not an important point
for this test, it is better to add an implicit 0.

Diffstat:
Mtests/0041-queen.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/tests/0041-queen.c b/tests/0041-queen.c @@ -41,6 +41,7 @@ go(int n, int x, int y) } x = 0; } + return 0; } int