blob: 8892fa99098ef52b2b0b841bf49b3e61ea16f2c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* { dg-options "-O3 -fno-inline -fdump-ipa-all -fipa-struct-reorg -fwhole-program -combine" } */
/* { dg-do compile } */
/* { dg-do run } */
#include <stdlib.h>
struct A {
int d;
};
struct A a;
struct A foo ()
{
a.d = 5;
return a;
}
int
main ()
{
a.d = 0;
foo ();
if (a.d != 5)
abort ();
return 0;
}
/*--------------------------------------------------------------------------*/
/* { dg-final { scan-ipa-dump "is return type of function...Excluded" "ipa_struct_reorg" { xfail *-*-* } } } */
/* { dg-final { cleanup-ipa-dump "*" } } */
|