* gcc.c-torture/execute/20011121-1.c: New test.
From-SVN: r47309
This commit is contained in:
parent
2dbbe435fe
commit
cbfd0e9eed
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue