aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr117142.c
blob: fc62c1e58f2e72707e9837d85bbd4b6de3106544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O1" } */

struct a {
  int b;
};
void c(int, int);
void __attribute__((returns_twice))
bar1(struct a);
void bar(struct a) {
  struct a d;
  bar1(d);
  c(d.b, d.b);
}