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

13 lines
327 B
Plaintext

# @TEST-EXEC: hiltic -p -D ast-final %INPUT >output 2>&1
# @TEST-EXEC: btest-diff output
#
# @TEST-DOC: Check that the constant folder replaces constant expressions with corresponding ctor nodes, and that the printer round-trips the result.
module Test {
global x = int32(-1);
global y = uint32(1);
global z = -1; # int64
}