mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Change printfln to printfn. Make LLVM 15 tests default.
This commit is contained in:
committed by
Christoffer Lerno
parent
3298ff2e15
commit
dc16f65c8e
24
test/test_suite/bitstruct/param_bitstruct.c3t
Normal file
24
test/test_suite/bitstruct/param_bitstruct.c3t
Normal file
@@ -0,0 +1,24 @@
|
||||
// #target: macos-x64
|
||||
module foo;
|
||||
|
||||
bitstruct Abc : uint
|
||||
{
|
||||
bool x : 0;
|
||||
}
|
||||
|
||||
fn void test(Abc x)
|
||||
{
|
||||
x.x = false;
|
||||
}
|
||||
|
||||
/* #expect: foo.ll
|
||||
|
||||
define void @foo_test(i32 %0) #0 {
|
||||
entry:
|
||||
%x = alloca i32, align 4
|
||||
store i32 %0, ptr %x, align 4
|
||||
%1 = load i32, ptr %x, align 4
|
||||
%2 = and i32 %1, -2
|
||||
store i32 %2, ptr %x, align 4
|
||||
ret void
|
||||
}
|
||||
Reference in New Issue
Block a user