zeek/auxil/spicy/tests/hilti/rt/exception-location.hlt
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

14 lines
264 B
Plaintext

# @TEST-REQUIRES: test "$BUILD" = "debug"
# @TEST-EXEC-FAIL: ${HILTIC} -X location -j %INPUT >output 2>&1
# @TEST-EXEC: btest-diff output
module Foo {
global auto x = b"xyz";
global auto i = begin(x);
assert *i == 'x';
x = b"";
assert *i == 'x'; # will throw
}