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

32 lines
437 B
Plaintext

# @TEST-GROUP: no-jit
# @TEST-EXEC: ${HILTIC} -g -p -D ast-final %INPUT >output 2>&1
# @TEST-EXEC: btest-diff output
module Foo {
global real A = 3;
global real B = -5;
global stream C = b"X";
global string D = "42";
function bool x() {
return True;
}
function real y() {
return 1;
}
function view<stream> z() {
return C;
}
function void z2() {
return;
}
global tuple<real, int<32>, string> E = (1, 2, "xyz");
}