aboutsummaryrefslogtreecommitdiff
path: root/test/cases/translate_c/simple_struct.c
blob: d3e2745ee3928e971e439262473a582828dfb53f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct Foo {
    int x;
};

// translate-c
// c_frontend=aro,clang
//
// const struct_Foo = extern struct {
//     x: c_int = @import("std").mem.zeroes(c_int),
// };
// 
// pub const Foo = struct_Foo;