aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-20 19:05:21 +0000
committerChris Lattner <sabre@nondot.org>2003-11-20 19:05:21 +0000
commit65914f5a57a189df328c18febfb3d7e1e0adaa3d (patch)
tree56960440f38d8e2a0808d23d7023fef198adcddd /test
parentf8485c643412dbff46fe87ea2867445169a5c28e (diff)
downloadexternal_llvm-65914f5a57a189df328c18febfb3d7e1e0adaa3d.zip
external_llvm-65914f5a57a189df328c18febfb3d7e1e0adaa3d.tar.gz
external_llvm-65914f5a57a189df328c18febfb3d7e1e0adaa3d.tar.bz2
New testcase for PR141
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-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;
+}
+