From 65914f5a57a189df328c18febfb3d7e1e0adaa3d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 20 Nov 2003 19:05:21 +0000 Subject: New testcase for PR141 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10112 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CFrontend/2003-11-20-Bitfields.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/CFrontend/2003-11-20-Bitfields.c (limited to 'test') 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; +} + -- cgit v1.1