tinycc: scaffold/main.c: running mes-tcc compiled binary #6.

* scaffold/main.c (main): Use variable, if, argc, ++, +=, function call to return 42.
This commit is contained in:
Jan Nieuwenhuizen 2017-11-16 05:33:11 +01:00
parent cf107cb2b2
commit d393fd3743

View file

@ -25,8 +25,11 @@ test ()
} }
int int
main () main (int argc, char *argv[])
{ {
int a = 40; if (argc == 6) return 42;
int a = 39;
if (argc > 1) a+=argc;
else a++;
return a + test (); return a + test ();
} }