X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=testub10.git;a=blobdiff_plain;f=gesamt%2Flewurm_04.call;fp=gesamt%2Flewurm_04.call;h=cfed53a2a1def26b3d3cfe8f4c88f56a7c0f510b;hp=0000000000000000000000000000000000000000;hb=50c9f57a2e15a7a018e1bd27392f81914898cdc5;hpb=612d41c3b5fa0813f773ae0ccaec9647370b6641 diff --git a/gesamt/lewurm_04.call b/gesamt/lewurm_04.call new file mode 100644 index 0000000..cfed53a --- /dev/null +++ b/gesamt/lewurm_04.call @@ -0,0 +1,10 @@ +long f(long); +long g(long); +#define ERG(a) ((a-1)-(a-2)-a) +int ret1 = f(-10); +int ret2 = f(1337); +int ret3 = f(-358193); +printf("ret1 ist %6i (sollte %6i sein)\n", ret1, ERG(-10)); +printf("ret2 ist %6i (sollte %6i sein)\n", ret2, ERG(1337)); +printf("ret3 ist %6i (sollte %6i sein)\n", ret3, ERG(-358193)); +RET(ret1 == ERG(-10) && ret2 == ERG(1337) && ret3 == ERG(-358193));