new testcase for PR906
authorChris Lattner <sabre@nondot.org>
Mon, 11 Sep 2006 22:48:23 +0000 (22:48 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Sep 2006 22:48:23 +0000 (22:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30267 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2006-09-11-BitfieldRefCrash.c [new file with mode: 0644]

diff --git a/test/CFrontend/2006-09-11-BitfieldRefCrash.c b/test/CFrontend/2006-09-11-BitfieldRefCrash.c
new file mode 100644 (file)
index 0000000..d06cc3a
--- /dev/null
@@ -0,0 +1,12 @@
+// RUN: %llvmgcc %s -S -o -
+// PR906
+
+struct state_struct {
+  unsigned long long phys_frame: 50;
+  unsigned valid : 2;
+} s;
+
+int mem_access(struct state_struct *p) {
+  return p->valid;
+}
+