gcc/testsuite/g++.dg/tree-ssa/pr83523.C
raw| 1 | // PR tree-optimization/83523 |
| 2 | // { dg-do compile } |
| 3 | // { dg-options "-O2 -fexceptions -fnon-call-exceptions -ftrapv" } |
| 4 | |
| 5 | #ifdef __SIZEOF_INT128__ |
| 6 | typedef __int128 T; |
| 7 | typedef long long int U; |
| 8 | #else |
| 9 | typedef long long int T; |
| 10 | typedef int U; |
| 11 | #endif |
| 12 | |
| 13 | struct S { S (); ~S (); }; |
| 14 | void bar (); |
| 15 | |
| 16 | T |
| 17 | foo (U x, U y) |
| 18 | { |
| 19 | T z = x; |
| 20 | S s; |
| 21 | bar (); |
| 22 | z *= y; |
| 23 | bar (); |
| 24 | return z; |
| 25 | } |