mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
23 lines
346 B
C
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
|