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