zeek/auxil/spicy/tests/hilti/hiltic/jit/precompiled-globals-twice.hlt
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

21 lines
479 B
Plaintext

# This test won't work in sanitizer mode as ASAN is putting ctors into
# the binary code that will then lead to duplicate symbols.
# @TEST-REQUIRES: ! have-sanitizer
#
# @TEST-EXEC: ${HILTIC} -j -o %INPUT.1.hlto %INPUT
# @TEST-EXEC: ${HILTIC} -j -o %INPUT.2.hlto %INPUT
# @TEST-EXEC: ${HILTIC} -j %INPUT.1.hlto %INPUT.2.hlto >output
# @TEST-EXEC: btest-diff output
#
# @TEST-GROUP: spicy-core
module Foo {
global string X = "Hello, world!";
import hilti;
hilti::print(X);
}