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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [dtor3.C] - Blame information for rev 717

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/17976
2
// { dg-do run }
3
 
4
extern "C" void abort();
5
struct A
6
{
7
  static int i;
8
  A(){}
9
  ~A(){i++;if(i>1)abort();}
10
};
11
 
12
int A::i = 0;
13
 
14
A a;
15
extern A a;
16
 
17
int main()
18
{
19
  return 0;
20
}
21
 

powered by: WebSVN 2.1.0

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