blob: 21a6a7f3a2e04a8cd6fd295fc1ad9896a73e0702 (
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
|
/* { 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 "*" } } */
|