summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/opt/pr32383.C
blob: af4161888ece17ca322f116bd2790ca2a2a57298 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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);
}