zeek/auxil/spicy/tests/hilti/optimization/peephole-try-catch.hlt
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

17 lines
258 B
Plaintext

# @TEST-EXEC: hiltic -p %INPUT >opt.hlt
# @TEST-EXEC: btest-diff opt.hlt
#
# @TEST-DOC: Test that catch-blocks that just rethrow get removed.
module Test {
public function void foo() {
try {
assert True;
} catch {
throw;
}
}
}