view gcc/testsuite/g++.dg/tree-ssa/pr83523.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

// PR tree-optimization/83523
// { dg-do compile }
// { dg-options "-O2 -fexceptions -fnon-call-exceptions -ftrapv" }

#ifdef __SIZEOF_INT128__
typedef __int128 T;
typedef long long int U;
#else
typedef long long int T;
typedef int U;
#endif

struct S { S (); ~S (); };
void bar ();

T
foo (U x, U y)
{
  T z = x;
  S s;
  bar ();
  z *= y;
  bar ();
  return z;
}