aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr82387.c
blob: ead1a2a70daf071b6a6ba6e540f4d6eed437c259 (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
/* PR tree-optimization/82387 */

struct A { int b; };
int f = 1;

struct A
foo (void)
{
  struct A h[] = { 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
    {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, {1}, 
  };
  return h[24];
}

int
main ()
{
  struct A i = foo (), j = i;
  j.b && (f = 0);
  return f; 
}