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

* scaffold/main.c (main): Use function call and variable to return 42.
This commit is contained in:
Jan Nieuwenhuizen 2017-11-15 23:06:23 +01:00
parent a2bc80fe7b
commit cf107cb2b2

View file

@ -19,13 +19,14 @@
*/ */
int int
main ()//int argc, char *argv[]) test ()
{ {
#if 1 return 2;
int a = 40; }
int b = 2;
return a + b; int
#else main ()
return 42; {
#endif int a = 40;
return a + test ();
} }