zeek/auxil/spicy/tests/hilti/ast/validation.hlt
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

37 lines
439 B
Plaintext

# @TEST-GROUP: no-jit
# @TEST-EXEC-FAIL: ${HILTIC} -c %INPUT 2>output
# @TEST-EXEC: btest-diff output
module Foo {
type T = bool;
type U = void;
global int<64> x;
global int<65> y;
global int<0> z;
global void v;
global T t;
global U u;
function bool f1() {
return;
}
function void f2() {
return 42;
}
function bool f3() {
local bool b;
local real d;
"1" == "2";
d = ("1" == "2");
b = ("1" == 2);
}
}