[llvm-commits] [llvm] r42517 - /llvm/trunk/test/C++Frontend/2007-10-01-StructResize.ll
Devang Patel
dpatel at apple.com
Mon Oct 1 17:39:20 PDT 2007
Author: dpatel
Date: Mon Oct 1 19:39:19 2007
New Revision: 42517
URL: http://llvm.org/viewvc/llvm-project?rev=42517&view=rev
Log:
New test.
Added:
llvm/trunk/test/C++Frontend/2007-10-01-StructResize.ll
Added: llvm/trunk/test/C++Frontend/2007-10-01-StructResize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/C%2B%2BFrontend/2007-10-01-StructResize.ll?rev=42517&view=auto
==============================================================================
--- llvm/trunk/test/C++Frontend/2007-10-01-StructResize.ll (added)
+++ llvm/trunk/test/C++Frontend/2007-10-01-StructResize.ll Mon Oct 1 19:39:19 2007
@@ -0,0 +1,14 @@
+// RUN: %llvmgxx -c %s -o /dev/null
+
+#pragma pack(4)
+
+struct Bork {
+ unsigned int f1 : 3;
+ unsigned int f2 : 30;
+};
+
+int Foo(Bork *hdr) {
+ hdr->f1 = 7;
+ hdr->f2 = 927;
+}
+
More information about the llvm-commits
mailing list