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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p8483.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
// prms-id: 8483
3
 
4
int count;
5
 
6
class A {
7
public:
8
  A() { ++count; }
9
  ~A() { }
10
};
11
 
12
class B {
13
private:
14
  A b[2];
15
};
16
 
17
class C {
18
public:
19
private:
20
  A c[2][2];
21
};
22
 
23
class D {
24
public:
25
private:
26
  A d[2][2][2];
27
};
28
 
29
int main() {
30
  { A a; }
31
  { B b; }
32
  { C c; }
33
  { D d; }
34
  if (count != 15)
35
    return 1;
36
}

powered by: WebSVN 2.1.0

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