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
22
test/test_suite/bitstruct/bitstruct_init_bool.c3t
Normal file
22
test/test_suite/bitstruct/bitstruct_init_bool.c3t
Normal file
@@ -0,0 +1,22 @@
|
||||
module foo;
|
||||
|
||||
bitstruct Foo : int
|
||||
{
|
||||
bool a : 1;
|
||||
bool b : 2;
|
||||
bool c : 3;
|
||||
}
|
||||
|
||||
fn void test()
|
||||
{
|
||||
Foo f = { .a = true, .b = false };
|
||||
}
|
||||
|
||||
/* #expect: foo.ll
|
||||
|
||||
define void @foo_test() #0 {
|
||||
entry:
|
||||
%f = alloca i32, align 4
|
||||
store i32 2, ptr %f, align 4
|
||||
ret void
|
||||
}
|
||||
Reference in New Issue
Block a user