[llvm-commits] CVS: llvm-test/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 28 09:54:35 PST 2004



Changes in directory llvm-test/SingleSource/UnitTests:

2004-11-28-GlobalBoolLayout.c added (r1.1)
---
Log message:

Fix a testcase that the asmwriter is breaking LLC for on multiple platforms.


---
Diffs of the changes:  (+16 -0)

Index: llvm-test/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c
diff -c /dev/null llvm-test/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c:1.1
*** /dev/null	Sun Nov 28 11:54:31 2004
--- llvm-test/SingleSource/UnitTests/2004-11-28-GlobalBoolLayout.c	Sun Nov 28 11:54:20 2004
***************
*** 0 ****
--- 1,16 ----
+ #include <stdlib.h>
+ #include <stdio.h>
+ 
+ struct S { _Bool X, Y; char str[100]; };
+ 
+ struct S G = { 1, 1, "fooo" };
+ 
+ int main() {
+ 	int X = strlen(G.str);
+ 	if (X == 10) {
+ 	  scanf("%d, %d\n", &G.X, &G.Y);
+         }
+ 	printf("%d %d %d\n", G.X, G.Y, X);
+ 	return X-4;
+ }
+ 






More information about the llvm-commits mailing list