aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2004-03-07-BitfieldCrash.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CFrontend/2004-03-07-BitfieldCrash.c b/test/CFrontend/2004-03-07-BitfieldCrash.c
new file mode 100644
index 0000000000..3a68d67589
--- /dev/null
+++ b/test/CFrontend/2004-03-07-BitfieldCrash.c
@@ -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;
+}