Commit cbfd0e9e by Ian Lance Taylor Committed by Ian Lance Taylor

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

From-SVN: r47309
parent 2dbbe435
2001-11-24 Ian Lance Taylor <ian@airs.com>
* gcc.c-torture/execute/20011121-1.c: New test.
Fri Nov 23 15:55:44 2001 Jeffrey A Law (law@cygnus.com) Fri Nov 23 15:55:44 2001 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/execute/ieee/20011123-1.c: New test. * gcc.c-torture/execute/ieee/20011123-1.c: New test.
......
struct s
{
int i[18];
char f;
char b[2];
};
struct s s1;
int
main()
{
struct s s2;
s2.b[0] = 100;
__builtin_memcpy(&s2, &s1, ((unsigned int) &((struct s *)0)->b));
if (s2.b[0] != 100)
abort();
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