view gcc/testsuite/g++.dg/opt/pr32383.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

// Testcase by Volker Reichelt <reichelt@gcc.gnu.org>

// { dg-do compile }
// { dg-options "-O -ffast-math" }

struct A
{
  ~A();
};

double& foo();

inline void bar (double d) { foo() /= d; }

void baz()
{
  A a;
  bar(2);
}