re PR target/52530 (Many 64-bit execution failures on Solaris 10/11 with Sun as)
PR target/52530 * gcc.dg/torture/pr52530.c: New test. From-SVN: r185201
This commit is contained in:
parent
8100d8c1eb
commit
bddc10b636
2 changed files with 35 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2012-03-11 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/52530
|
||||
* gcc.dg/torture/pr52530.c: New test.
|
||||
|
||||
2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
|
||||
|
||||
PR target/51244
|
||||
|
|
30
gcc/testsuite/gcc.dg/torture/pr52530.c
Normal file
30
gcc/testsuite/gcc.dg/torture/pr52530.c
Normal file
|
@ -0,0 +1,30 @@
|
|||
/* { dg-do run } */
|
||||
|
||||
extern void abort (void);
|
||||
|
||||
struct foo
|
||||
{
|
||||
int *f;
|
||||
int i;
|
||||
};
|
||||
|
||||
int baz;
|
||||
|
||||
void __attribute__ ((noinline))
|
||||
bar (struct foo x)
|
||||
{
|
||||
*(x.f) = x.i;
|
||||
}
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
struct foo x = { &baz, 0xdeadbeef };
|
||||
|
||||
bar (x);
|
||||
|
||||
if (baz != 0xdeadbeef)
|
||||
abort ();
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Reference in a new issue