mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
18 lines
294 B
Plaintext
18 lines
294 B
Plaintext
// #target: macos-x64
|
|
module foo;
|
|
fn void test()
|
|
{
|
|
bool a = $defined($$sin);
|
|
bool b = $defined($$bas);
|
|
}
|
|
|
|
/* #expect: foo.ll
|
|
|
|
define void @foo.test() #0 {
|
|
entry:
|
|
%a = alloca i8, align 1
|
|
%b = alloca i8, align 1
|
|
store i8 1, ptr %a, align 1
|
|
store i8 0, ptr %b, align 1
|
|
ret void
|
|
} |