aboutsummaryrefslogtreecommitdiffstats
path: root/test/indirectcall3.awk
blob: 67181112e3d759d6fad25f8beebe38133c377637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function okay(f1, f2, arg)
{
    return @f1(arg)
}

function not_so_hot(f1, f2, arg)
{
    return @f1(arg, @f2(arg)) # line 8: error here
}

function workaround(f1, f2, arg,
                     tmp)
{
   tmp = @f2(arg)
   return @f1(arg, tmp)
}