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
1 changed files with 9 additions and 8 deletions

View File

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