32 lines
437 B
Plaintext
32 lines
437 B
Plaintext
# @TEST-GROUP: no-jit
|
|
# @TEST-EXEC: ${HILTIC} -g -p -D ast-final %INPUT >output 2>&1
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
module Foo {
|
|
|
|
global real A = 3;
|
|
global real B = -5;
|
|
global stream C = b"X";
|
|
global string D = "42";
|
|
|
|
function bool x() {
|
|
return True;
|
|
}
|
|
|
|
function real y() {
|
|
return 1;
|
|
}
|
|
|
|
function view<stream> z() {
|
|
return C;
|
|
}
|
|
|
|
function void z2() {
|
|
return;
|
|
}
|
|
|
|
global tuple<real, int<32>, string> E = (1, 2, "xyz");
|
|
|
|
|
|
}
|