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:
parent
a2bc80fe7b
commit
cf107cb2b2
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue