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

extern "C" void abort (void);
extern void Foo (C c);
extern int r;

void
byval1_x ()
{       
  C c;

  Foo (c);
  if (r != 0)
    abort ();
}