summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/2008-07-22-packed-bitfield-access.c
blob: 76b942d5ad035c5011388ee1e42d5a5e907c8d05 (about) (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %clang_cc1 %s -emit-llvm -o -

int main () {
  struct foo {
    unsigned a:16;
    unsigned b:32 __attribute__ ((packed));
  } x;
  x.b = 0x56789abcL;
  return 0;
}