OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [compat/] [init/] [byval1_y.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
#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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.