Debian Codegraph @

gcc/testsuite/g++.dg/compat/init/byval1_y.C

raw
1 #include "byval1.h"
2
3 void *p[2];
4
5 int i;
6 int r;
7
8 C::C() { p[i++] = this; }
9 C::~C() { if (p[--i] != this) r = 1; }
10
11 void Foo (C c)
12 {
13 p[i++] = &c;
14 }