gcc/testsuite/g++.dg/opt/pr80102.C
raw| 1 | // PR target/80102 |
| 2 | // { dg-do compile } |
| 3 | // { dg-options "-fnon-call-exceptions -Os" } |
| 4 | // { dg-additional-options "-mminimal-toc" { target { powerpc*-*-* && lp64 } } } |
| 5 | |
| 6 | struct B { float a; B (float c) { for (int g; g < c;) ++a; } }; |
| 7 | struct D { D (B); }; |
| 8 | |
| 9 | int |
| 10 | main () |
| 11 | { |
| 12 | B (1.0); |
| 13 | D e (0.0), f (1.0); |
| 14 | } |