Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

19 lines
382 B
Plaintext

# @TEST-GROUP: no-jit
# @TEST-EXEC: ${HILTIC} -g -c --cxx-enable-dynamic-globals %INPUT >output
# @TEST-EXEC: ${HILTIC} -l %INPUT >>output
# @TEST-EXEC: btest-diff output
#
# @TEST-EXEC: ${HILTIC} -g -c %INPUT >output2
# @TEST-EXEC: ${HILTIC} -l %INPUT >>output2
# @TEST-EXEC: btest-diff output2
module Foo {
global string X = "Hello, world!";
import hilti;
hilti::print(X);
}