[llvm-commits] [test-suite] r69397 - /test-suite/trunk/SingleSource/UnitTests/2009-04-16-BitfieldInitialization.c
Chris Lattner
sabre at nondot.org
Fri Apr 17 16:10:34 PDT 2009
Author: lattner
Date: Fri Apr 17 18:10:33 2009
New Revision: 69397
URL: http://llvm.org/viewvc/llvm-project?rev=69397&view=rev
Log:
testcase for 471.omnetpp miscompile with my llvm-gcc patch.
Modified:
test-suite/trunk/SingleSource/UnitTests/2009-04-16-BitfieldInitialization.c
Modified: test-suite/trunk/SingleSource/UnitTests/2009-04-16-BitfieldInitialization.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/UnitTests/2009-04-16-BitfieldInitialization.c?rev=69397&r1=69396&r2=69397&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/UnitTests/2009-04-16-BitfieldInitialization.c (original)
+++ test-suite/trunk/SingleSource/UnitTests/2009-04-16-BitfieldInitialization.c Fri Apr 17 18:10:33 2009
@@ -59,6 +59,14 @@
unsigned short q : 12;
} __attribute__((packed)) t7a = { 101, 15, 123 };
+struct sDescrItem {
+ char what;
+ char *types;
+ char type;
+} t8 = {16, 0, 32};
+
+
+
#include <stdio.h>
int main() {
@@ -72,5 +80,6 @@
printf("6: %Lf %d\n", t6.x, t6.y);
printf("7: %d %d %d %d\n", t7.x, t7.y, t7.q, t7.z);
printf("7a: %d %d %d\n", t7a.x, t7a.y, t7a.q);
+ printf("8: %d %d\n", t8.what, t8.type);
return 0;
}
More information about the llvm-commits
mailing list