Commit da621fd2 by Jeffrey A Law Committed by Jeff Law

* gcc.c-torture/execute/990628-1.c: New test.

From-SVN: r27812
parent eca5590f
Mon Jun 28 08:20:51 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/990628-1.c: New test.
Fri Jun 25 05:28:40 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/990625-2.c: New test.
......
#define TP_BSIZE 64
char buf[2*TP_BSIZE];
char (*nextblock)[TP_BSIZE] = (char (*)[TP_BSIZE]) buf;
union u_test {
char dummy[TP_BSIZE];
struct s_test {
int a;
int b;
int c;
} s_test;
};
main(int argc, char **argv)
{
int i;
char dp[TP_BSIZE];
for (i = 0; i < 2*TP_BSIZE; i++)
buf[i] = '.';
for (i = 0; i < TP_BSIZE; i++)
dp[i] = 'a';
*(union u_test *)(*(nextblock)++) = *(union u_test *)dp;
for (i = 0; i < 2*TP_BSIZE; i++)
printf("%c%s", buf[i], (i % 64) == 63 ? "\n" : "");
exit(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