diff options
Diffstat (limited to 'test/CodeGen/pr2394.c')
-rw-r--r-- | test/CodeGen/pr2394.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/pr2394.c b/test/CodeGen/pr2394.c new file mode 100644 index 000000000000..e43281a3cd3e --- /dev/null +++ b/test/CodeGen/pr2394.c @@ -0,0 +1,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; +} |