aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/CFrontend/2003-11-20-Bitfields.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CFrontend/2003-11-20-Bitfields.c b/test/CFrontend/2003-11-20-Bitfields.c
new file mode 100644
index 0000000..7fb3df5
--- /dev/null
+++ b/test/CFrontend/2003-11-20-Bitfields.c
@@ -0,0 +1,10 @@
+struct face_cachel {
+ unsigned int reverse :1;
+ unsigned char font_specified[1];
+};
+
+void
+ensure_face_cachel_contains_charset (struct face_cachel *cachel) {
+ cachel->font_specified[0] = 0;
+}
+