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

From-SVN: r47309
This commit is contained in:
Ian Lance Taylor 2001-11-25 06:30:44 +00:00 committed by Ian Lance Taylor
parent 2dbbe435fe
commit cbfd0e9eed
2 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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)
* gcc.c-torture/execute/ieee/20011123-1.c: New test.

View File

@ -0,0 +1,19 @@
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);
}