ubuntu-buildroot/output/build/host-gawk-5.2.0/test/fcall_exit2.awk

26 lines
364 B
Awk
Raw Normal View History

2024-04-01 15:19:46 +00:00
#!/bin/awk -f
function crash () {
exit 1
}
function true (a,b,c) {
return 1
}
BEGIN {
if (ARGV[2] == 1) {
print "<BEGIN CONTEXT> true(1, crash()) => crash properly."
true(1, crash())
# ADR: Added:
delete ARGV[2]
}
}
{
print "<RULE CONTEXT> true(1, crash()) => do not crash properly."
true(1, crash())
}
# FdF