[llvm-commits] [llvm] r48881 - /llvm/trunk/test/CFrontend/2008-01-21-PackedStructField.c
Devang Patel
dpatel at apple.com
Thu Mar 27 10:13:57 PDT 2008
Author: dpatel
Date: Thu Mar 27 12:13:55 2008
New Revision: 48881
URL: http://llvm.org/viewvc/llvm-project?rev=48881&view=rev
Log:
add another testcase
Modified:
llvm/trunk/test/CFrontend/2008-01-21-PackedStructField.c
Modified: llvm/trunk/test/CFrontend/2008-01-21-PackedStructField.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2008-01-21-PackedStructField.c?rev=48881&r1=48880&r2=48881&view=diff
==============================================================================
--- llvm/trunk/test/CFrontend/2008-01-21-PackedStructField.c (original)
+++ llvm/trunk/test/CFrontend/2008-01-21-PackedStructField.c Thu Mar 27 12:13:55 2008
@@ -3,3 +3,16 @@
struct X { long double b; unsigned char c; double __attribute__((packed)) d; };
struct X x = { 3.0L, 5, 3.0 };
+
+struct S2504 {
+ int e:17;
+ __attribute__((packed)) unsigned long long int f;
+} ;
+int fails;
+ extern struct S2504 s2504;
+void check2504va (int z) {
+ struct S2504 arg, *p;
+ long long int i = 0;
+ arg.f = i;
+}
+
More information about the llvm-commits
mailing list