19 lines
439 B
Plaintext
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);
|
|
|
|
}
|