Files
c3c/test/test_suite/compile_time/ct_checks.c3t
2023-01-11 18:00:08 +01:00

23 lines
346 B
C

// #target: macos-x64
module test;
import std::io;
fn void main()
{
int a;
bool b = $checks(a = 12.0);
var $y = 23;
bool c = $checks(int z = 23, $y += 23, &c);
bool d = $checks(&c, $y, int yy = 23);
int z = $y;
io::printfn("%s %s %s", b, $y, c);
}
/* #expect: test.ll
store i32 0
store i8 0
store i8 1
store i8 1
store i32 46