[llvm-commits] [llvm] r45583 - /llvm/trunk/test/CFrontend/2008-01-04-WideBitfield.c
Duncan Sands
baldrick at free.fr
Fri Jan 4 05:15:39 PST 2008
Author: baldrick
Date: Fri Jan 4 07:15:39 2008
New Revision: 45583
URL: http://llvm.org/viewvc/llvm-project?rev=45583&view=rev
Log:
Testcase for PR1386.
Added:
llvm/trunk/test/CFrontend/2008-01-04-WideBitfield.c
Added: llvm/trunk/test/CFrontend/2008-01-04-WideBitfield.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2008-01-04-WideBitfield.c?rev=45583&view=auto
==============================================================================
--- llvm/trunk/test/CFrontend/2008-01-04-WideBitfield.c (added)
+++ llvm/trunk/test/CFrontend/2008-01-04-WideBitfield.c Fri Jan 4 07:15:39 2008
@@ -0,0 +1,13 @@
+// RUN: %llvmgcc -S -o - %s
+// PR1386
+#include <stdint.h>
+
+struct X {
+ unsigned char pad : 4;
+ uint64_t a : 64;
+} __attribute__((packed)) x;
+
+uint64_t f(void)
+{
+ return x.a;
+}
More information about the llvm-commits
mailing list