summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tree-ssa/pr38104.C
blob: 6523a5e171bdcb144ec5df8b83edb91bfca683cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// PR tree-optimization/38104
// { dg-do compile }
// { dg-options "-O3" }

struct S { int foo; };

void f0 ();

void
f1 (struct S s)
{
  f0 ();
}

void
f2 ()
{
  f1 (*(struct S *) (0));
}