summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/compat/init/elide1_x.C
blob: dbc287e4e2cb2a10b115a514c30a4d9eb1907cc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "elide1.h"

extern "C" void abort (void);
extern void f (A);
extern int d;

void
elide1_x (void)
{
  int r;
  f (A ()), r = d;

  if (r >= d || !d)
    abort ();
}