X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ftests%2Fargs.c;h=9754344ada933d1b37fa41aa940beafdd1ac861e;hb=b4e7e32b7bf6e7800ff1e6bc8a245e9c5c654ae6;hp=1dc2fcf1cbf9f7571e9c674840230a43ae5d08f1;hpb=edb44efc924601623ca7d2b402183c61cc860b0e;p=fw%2Fsdcc diff --git a/support/regression/tests/args.c b/support/regression/tests/args.c index 1dc2fcf1..9754344a 100644 --- a/support/regression/tests/args.c +++ b/support/regression/tests/args.c @@ -1,27 +1,33 @@ /** Tests argument passing to functions. Assumes that up to the first two arguments can be passed in registers. - type1: char, int - type2: char, int - type3: char, int + type1: char, int, long + type2: char, int, long + type3: char, int, long */ #include static {type1} returnFirstArg({type1} arg1, {type2} arg2, {type3} arg3) { + UNUSED(arg2); + UNUSED(arg3); return arg1; } static {type2} returnSecondArg({type1} arg1, {type2} arg2, {type3} arg3) { + UNUSED(arg1); + UNUSED(arg3); return arg2; } static {type3} returnThirdArg({type1} arg1, {type2} arg2, {type3} arg3) { + UNUSED(arg1); + UNUSED(arg2); return arg3; } @@ -36,4 +42,5 @@ testArgs(void) ASSERT(returnThirdArg(-33, -34, -35) == -35); ASSERT(returnThirdArg(-33, -34, 35) == 35); + }