xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/fcall_exit2.awk (revision e6d6c189fa3a95d7aa27bbe0aeacf7c1a6b57c8c)
1#!/bin/awk -f
2
3function crash () {
4    exit 1
5}
6
7function true (a,b,c) {
8    return 1
9}
10
11BEGIN {
12    if (ARGV[2] == 1) {
13        print "<BEGIN CONTEXT> true(1, crash()) => crash properly."
14        true(1, crash())
15	# ADR: Added:
16	delete ARGV[2]
17    }
18}
19
20{
21        print "<RULE CONTEXT> true(1, crash()) => do not crash properly."
22        true(1, crash())
23}
24
25# FdF
26