summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr37456.C
blob: cf2021be203511015d8a457ca5550495194023c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */

int zot(int);
struct bar {
  ~bar() { }
};
int x;
void doit(int a, int b, int c)
{
  bar pn;
  int b1 = zot(a) * c;
  int b2 = zot(b) * c;
  x = b1 + b2;
}