zeek/auxil/spicy/tests/hilti/expressions/global-scope-id.hlt
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

17 lines
243 B
Plaintext

# @TEST-EXEC: ${HILTIC} -j %INPUT >output
# @TEST-EXEC: btest-diff output
#
# @TEST0-DOC: Test using `::` to access a global variable.
module X {
const int<32> x = 1;
function auto foo(int<32> x) {
return ::x;
}
assert foo(2) == 1;
}