New testcase for PR269
authorChris Lattner <sabre@nondot.org>
Mon, 8 Mar 2004 05:35:12 +0000 (05:35 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 8 Mar 2004 05:35:12 +0000 (05:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12211 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2004-03-07-BitfieldCrash.c [new file with mode: 0644]

diff --git a/test/CFrontend/2004-03-07-BitfieldCrash.c b/test/CFrontend/2004-03-07-BitfieldCrash.c
new file mode 100644 (file)
index 0000000..3a68d67
--- /dev/null
@@ -0,0 +1,11 @@
+
+struct s {
+  unsigned long long u33: 33;
+  unsigned long long u40: 40;
+};
+
+struct s a = { 1, 2};
+
+int foo() {
+  return a.u40;
+}