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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/12883
2
// Bug: Destructor of array object not called if no prior
3
// instantiation of the template has happened.
4
 
5
// { dg-do run }
6
 
7
int ret = 1;
8
 
9
template  struct X
10
{
11
  X(int) { }
12
  ~X() { ret = 0; }
13
};
14
 
15
int main()
16
{
17
  {
18
    X<0> array[] = { 0 };
19
  }
20
  return ret;
21
}

powered by: WebSVN 2.1.0

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