zeek/auxil/spicy/tests/hilti/hiltic/cc/hello-world.hlt
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

19 lines
439 B
Plaintext

# @TEST-GROUP: no-jit
# @TEST-EXEC: ${HILTIC} -g -c -D compiler -o test.cc %INPUT
# @TEST-EXEC: ${HILTIC} -g -l -D compiler -o linker.cc test.cc
# @TEST-EXEC: cxx-compile -c -o test.o test.cc
# @TEST-EXEC: cxx-compile -c -o linker.o linker.cc
# @TEST-EXEC: cxx-link -o a.out test.o linker.o
# @TEST-EXEC: ./a.out >output
# @TEST-EXEC: btest-diff output
module Foo {
global string X = "Hello, world!";
import hilti;
hilti::print(X);
}