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

17 lines
361 B
Plaintext

# @TEST-EXEC: cat %INPUT | sed 's/GLOBAL/1/g' > 1.hlt
# @TEST-EXEC: cat %INPUT | sed 's/GLOBAL/2/g' > 2.hlt
# @TEST-EXEC: hiltic -j 1.hlt >1
# @TEST-EXEC: hiltic -j 2.hlt >2
# @TEST-EXEC-FAIL: cmp 1 2
#
# @TEST-DOC: Check that the internal per-link unit scope differs with each HLTO file.
module X {
import hilti;
global x = GLOBAL;
hilti::print($scope);
}