* Mainline merge as of 2006-02-16 (@111136).
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr26179.C
blob32cd7a00ea9dca7575cf59049e8033072c211761
1 /* The problem here is that Load PRE on the tree level
2    forgot to handle RETURN_DECL which causes us to ICE. */
4 // { dg-do compile }
5 // { dg-options "-O2" }
7 struct a
9   int i;
11 void h(struct a&);
12 void l(void);
14 struct a g(void)
16   struct a fl;
17   h(fl);
18   if (fl.i)
19     l();
20   fl.i+=2;
21   return fl;