+2001-09-15 Aldy Hernandez <aldyh@redhat.com>
+
+ * gcc.c-torture/execute/980223.c: Change type of addr from long
+ to char *.
+
2001-09-15 Hans-Peter Nilsson <hp@axis.com>
* gcc.c-torture/execute/20010915-1.c: New test.
-typedef struct { long addr; long type; } object;
+typedef struct { char *addr; long type; } object;
object bar (object blah)
{
}
int nil;
-object cons1[2] = { {(long) &nil, 0}, {(long) &nil, 0} };
-object cons2[2] = { {(long) &cons1, 64}, {(long) &nil, 0} };
+object cons1[2] = { {(char *) &nil, 0}, {(char *) &nil, 0} };
+object cons2[2] = { {(char *) &cons1, 64}, {(char *) &nil, 0} };
main()
{
- object x = {(long) &cons2, 64};
- object y = {(long) &nil, 0};
+ object x = {(char *) &cons2, 64};
+ object y = {(char *) &nil, 0};
object three = foo(x,y);
return 0;
}