summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/pr2394.c
blob: e43281a3cd3e6f531d9c2846e446e1b0eeb94c16 (about) (plain)
1
2
3
4
5
6
7
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s
struct __attribute((packed)) x {int a : 24;};
int a(struct x* g) {
  // CHECK: load i16
  // CHECK: load i8
  return g->a;
}