tyfkda / xcc

Standalone C compiler/assembler/linker/libc for x86-64/aarch64/riscv64/wasm
https://tyfkda.github.io/xcc/
MIT License
254 stars 17 forks source link

Flexible array member #66

Closed tyfkda closed 1 year ago

tyfkda commented 4 years ago
struct Foo {
  int count;
  int buffer[];  // <=
};

sizeof(struct Foo) == sizeof(int)

static struct Foo foo = {1, {2, 3, 4}};

Check:

//