xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/pr2394.c (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -triple i386-apple-darwin10 -emit-llvm -o - | FileCheck %s
2*f4a2713aSLionel Sambuc struct __attribute((packed)) x {int a : 24;};
a(struct x * g)3*f4a2713aSLionel Sambuc int a(struct x* g) {
4*f4a2713aSLionel Sambuc   // CHECK: load i24
5*f4a2713aSLionel Sambuc   return g->a;
6*f4a2713aSLionel Sambuc }
7