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/] [dtor1_y.C] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
#include "dtor1.h"
2
 
3
extern "C" void abort ();
4
 
5
int d = 5;
6
 
7
B::B (int i) : x (i) { }
8
B::~B () { if (d-- != x) abort (); }
9
 
10
C1::C1 (int i) : B (i) {}
11
 
12
C2::C2 (int i) : B (i) {}
13
 
14
D::D (int i) : B (i) {}
15
 
16
E::E (int i) : B (i) {}
17
 
18
A::A () : D (0), E (1), C1 (2), C2 (3), x1(4), x2(5) {}

powered by: WebSVN 2.1.0

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