From edf26ed051fae1f1885a66ba718ee012cc1a8797 Mon Sep 17 00:00:00 2001 From: Stuart Hastings Date: Wed, 5 May 2010 22:49:33 +0000 Subject: [PATCH] Test case for pr2394 and r102979. llvm-svn: 103129 --- test/FrontendC/pr2394.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/FrontendC/pr2394.c diff --git a/test/FrontendC/pr2394.c b/test/FrontendC/pr2394.c new file mode 100644 index 00000000000..ca8b046f72f --- /dev/null +++ b/test/FrontendC/pr2394.c @@ -0,0 +1,6 @@ +// RUN: %llvmgcc %s -S -o - | FileCheck %s +struct __attribute((packed)) x {int a : 24;}; +int a(struct x* g) { + // CHECK: load i24 + return g->a; +}