~vcs-imports/gawk/master

« back to all changes in this revision

Viewing changes to test/indirectbuiltin5.awk

  • Committer: Arnold D. Robbins
  • Date: 2025-02-05 19:08:42 UTC
  • mfrom: (2057.3.42)
  • Revision ID: git-v1:49bb5192754dfd0367425c159c027b58a1030426
Merge branch 'gawk-5.3-stable'

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
BEGIN {
 
2
        print "test 1"
 
3
        if (1) {
 
4
                f = "awk::match"
 
5
                @f(a, b, c)
 
6
                # error: gawk: ./bug.gwk:7: fatal error: internal error
 
7
        }
 
8
        print "test 2"
 
9
        if (1) {
 
10
                f = "f1"
 
11
                f1_ = "awk::patsplit"   # or split, asort, asorti, index, substr ...
 
12
                @f(a, b, c, d)
 
13
                # error: Assertion failed: r->valref > 0, file awk.h, line 1295
 
14
        }
 
15
}
 
16
 
 
17
function f1(a, b, c, d)
 
18
{
 
19
        return @f1_(a, b)
 
20
}