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.0rc2/] [gcc/] [testsuite/] [g++.dg/] [init/] [cleanup3.C] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Check that on targets with "__cxa_atexit" we use destructors,
2
// rather than cleanup functions, to destroy objects with static
3
// storage duration.
4
 
5
// { dg-require-effective-target "cxa_atexit" }
6
// Cleanup functions generated by G++ have the "_tcf" prefix.
7
// { dg-final { scan-assembler-not "_tcf" } }
8
 
9
struct S {
10
  ~S();
11
};
12
 
13
struct T {
14
  S s;
15
};
16
 
17
S s;
18
T t;
19
 
20
void f() {
21
  static S s;
22
}

powered by: WebSVN 2.1.0

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