16 lines
218 B
Plaintext
16 lines
218 B
Plaintext
# @TEST-EXEC: hiltic -j %INPUT >output
|
|
#
|
|
# @TEST-DOC: Check that globals can be initialized from calls to functions.
|
|
|
|
module Foo {
|
|
|
|
function uint<16> bar() {
|
|
return 4711;
|
|
}
|
|
|
|
global x = bar();
|
|
|
|
assert x == 4711;
|
|
|
|
}
|