aboutsummaryrefslogtreecommitdiff
path: root/test/cases/translate_c/struct_with_aligned_fields.c
blob: 37a25ff49ac23b624a1742c02cefaab6b4706e58 (plain)
1
2
3
4
5
6
7
8
9
10
struct foo {
    __attribute__((aligned(4))) short bar;
};

// translate-c
// c_frontend=aro,clang
// 
// pub const struct_foo = extern struct {
//     bar: c_short align(4) = @import("std").mem.zeroes(c_short),
// };