xref: /illumos-gate/usr/src/test/util-tests/tests/awk/bugs-fixed/fs-overflow.awk (revision 74e12c43fe52f2c30f36e65a4d0fb0e8dfd7068a)
1function foo() {
2    a = "";
3    for (i = 0; i < 10000; i++) {
4        a = a "c";
5    }
6    return a;
7}
8
9BEGIN {
10    FS = foo();
11    $0="foo";
12    print $1;
13}
14