Debian Codegraph @

gcc/testsuite/g++.dg/lto/20081219_0.C

raw
1 // { dg-lto-do link }
2 // { dg-require-effective-target fpic }
3 // { dg-lto-options {{-fPIC -flto -flto-partition=1to1 -O2}} }
4 // { dg-extra-ld-options "-O2 -fPIC -flto -flto-partition=1to1 -r -nostdlib -flinker-output=nolto-rel" }
5
6 typedef long int ptrdiff_t;
7 extern "C"
8 {
9 typedef struct
10 {
11 }
12 __mbstate_t;
13 namespace std
14 {
15 class exception
16 {
17 };
18 }
19 }
20 namespace std __attribute__ ((__visibility__ ("default")))
21 {
22 template < typename _Alloc > class allocator;
23 template < class _CharT > struct char_traits;
24 }
25 typedef __mbstate_t mbstate_t;
26 namespace std __attribute__ ((__visibility__ ("default")))
27 {
28 using::mbstate_t;
29 typedef ptrdiff_t streamsize;
30 template < typename _CharT, typename _Traits =
31 char_traits < _CharT > >class basic_istream;
32 template < typename _CharT, typename _Traits =
33 char_traits < _CharT >, typename _Alloc =
34 allocator < _CharT > >class basic_stringbuf;
35 class ios_base
36 {
37 public:class failure:public exception
38 {
39 };
40 virtual ~ ios_base ();
41 };
42 template < typename _CharT, typename _Traits > class basic_streambuf
43 {
44 };
45 template < typename _CharT, typename _Traits > class basic_ios:public
46 ios_base
47 {
48 };
49 template < typename _CharT, typename _Traits > class basic_istream:virtual public basic_ios < _CharT,
50 _Traits
51 >
52 {
53 typedef basic_streambuf < _CharT, _Traits > __streambuf_type;
54 protected:streamsize _M_gcount;
55 public: explicit basic_istream (__streambuf_type * __sb):_M_gcount (streamsize
56 (0))
57 {
58 }
59 };
60 template < typename _CharT, typename _Traits, typename _Alloc > class basic_stringbuf:public basic_streambuf < _CharT,
61 _Traits
62 >
63 {
64 };
65 template < typename V, typename I, typename S = std::mbstate_t > struct character
66 {
67 };
68 typedef character < unsigned short, unsigned int >pod_ushort;
69 typedef basic_stringbuf < pod_ushort > stringbuf_type;
70 typedef basic_istream < pod_ushort > istream_type;
71 stringbuf_type strbuf01;
72 istream_type stream (&strbuf01);
73 }