2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / cxa-atexit1.C
bloba51f3340142673add9647fcd2ac61a10a9a18ed4
1 // { dg-do compile }
2 // { dg-options "-O2 -fuse-cxa-atexit" }
4 # 1 "cxa-atexit1.C"
5 struct A
7   struct B
8   {
9     B ();
10     ~B ();
11   };
13 static A::B b;
14 # 1 "cxa-atexit1.h" 1
15 #pragma interface
16 template <class T> struct C
18   ~C (void);
20 struct D : public C<bool>
22   D (void) : C<bool> () { }
24 # 55 "cxa-atexit1.C" 2
26 // { dg-final { scan-assembler-not ".gnu.linkonce.t.__tcf_" } }