blob: 931b60730b7b08c3067310e2bd8381b41a4e7fe3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/awk -f
function crash () {
exit 1
}
function true (a,b,c) {
return 0
}
BEGIN {
if (ARGV[1] == 1) {
print "true(1, 1, crash()) => crash properly."
true(1, 1, crash())
} else if (ARGV[1] == 2) {
print "true(1, crash(), 1) => do not crash properly."
true(1, crash(),1)
} else {
print "true(1, crash()) => do not crash properly."
true(1, crash())
}
}
# FdF
|