llvm.org GIT mirror llvm / release_22 test / CFrontend / 2003-08-29-StructLayoutBug.c
release_22

Tree @release_22 (Download .tar.gz)

2003-08-29-StructLayoutBug.c @release_22raw · history · blame

1
2
3
4
5
6
7
8
9
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null

struct foo {
  unsigned int I:1;
  unsigned char J[1];
  unsigned int K:1;
 };

void test(struct foo *X) {}