gcc/testsuite/g++.dg/opt/pr26179.C
raw| 1 | /* The problem here is that Load PRE on the tree level |
| 2 | forgot to handle RETURN_DECL which causes us to ICE. */ |
| 3 | |
| 4 | // { dg-do compile } |
| 5 | // { dg-options "-O2" } |
| 6 | |
| 7 | struct a |
| 8 | { |
| 9 | int i; |
| 10 | }; |
| 11 | void h(struct a&); |
| 12 | void l(void); |
| 13 | |
| 14 | struct a g(void) |
| 15 | { |
| 16 | struct a fl; |
| 17 | h(fl); |
| 18 | if (fl.i) |
| 19 | l(); |
| 20 | fl.i+=2; |
| 21 | return fl; |
| 22 | } |