Commit 0ea009fc by Aldy Hernandez Committed by Aldy Hernandez

* 980223.c: Change type of addr from long to char *.

From-SVN: r45635
parent 69e47210
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)
{
......@@ -19,13 +19,13 @@ object foo (object x, object y)
}
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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment