OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.oliva/] [delete2.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// Copyright (C) 1999 Free Software Foundation
3
 
4
// by Alexandre Oliva 
5
// distilled from bug report by Barry M. Caceres 
6
 
7
// Test whether dtors of vbases are called on delete[].
8
 
9
extern "C" void abort();
10
extern "C" void exit(int);
11
 
12
struct Foo {
13
  ~Foo() {
14
    exit(0);
15
  }
16
};
17
 
18
struct Bar : virtual Foo {
19
};
20
 
21
int main() {
22
  delete [] new Bar[1];
23
  abort();
24
}
25
 
26
 

powered by: WebSVN 2.1.0

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