annotate gcc/testsuite/g++.dg/lto/pr65302_0.C @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // { dg-lto-do link }
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 // { dg-require-effective-target lto_incremental }
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
3 // { dg-lto-options { { -flto -O2 -Wno-return-type } } }
111
kono
parents:
diff changeset
4 // { dg-extra-ld-options "-r -nostdlib -O0" }
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 class CstringStorageReference {
kono
parents:
diff changeset
7 public:
kono
parents:
diff changeset
8 ~CstringStorageReference ();
kono
parents:
diff changeset
9 };
kono
parents:
diff changeset
10 class Cstring {
kono
parents:
diff changeset
11 CstringStorageReference m_stringRef;
kono
parents:
diff changeset
12 public:
kono
parents:
diff changeset
13 Cstring (const char *str, int l = 0);
kono
parents:
diff changeset
14 unsigned int getLength () const;
kono
parents:
diff changeset
15 };
kono
parents:
diff changeset
16 class ZEvent_Component { };
kono
parents:
diff changeset
17 class ZEvent_Data { };
kono
parents:
diff changeset
18 class ZEvent_Interrupt { };
kono
parents:
diff changeset
19 class ZEvent_Mouse { };
kono
parents:
diff changeset
20 class ZEvent_Key { };
kono
parents:
diff changeset
21 class ZEventHandler {
kono
parents:
diff changeset
22 virtual void HandleEvent (const ZEvent_Component & event);
kono
parents:
diff changeset
23 virtual void HandleEvent (const ZEvent_Mouse & event);
kono
parents:
diff changeset
24 virtual void HandleEvent (const ZEvent_Key & event);
kono
parents:
diff changeset
25 virtual void HandleEvent (const ZEvent_Interrupt & event);
kono
parents:
diff changeset
26 virtual void HandleEvent (const ZEvent_Data & event);
kono
parents:
diff changeset
27 };
kono
parents:
diff changeset
28 enum ZHorizontalAlignment { HA_Left };
kono
parents:
diff changeset
29 enum ZVerticalAlignment { VA_Baseline };
kono
parents:
diff changeset
30 struct ZDevicePointStruct { };
kono
parents:
diff changeset
31 struct ZDeviceRectangleStruct { };
kono
parents:
diff changeset
32 struct ZDeviceCircleStruct { };
kono
parents:
diff changeset
33 class ZOutputDevice;
kono
parents:
diff changeset
34 class Foo;
kono
parents:
diff changeset
35 class ZRubberBand {
kono
parents:
diff changeset
36 public:
kono
parents:
diff changeset
37 ZOutputDevice * getOutputDevice ();
kono
parents:
diff changeset
38 };
kono
parents:
diff changeset
39 class ZRubberBand2P : public ZRubberBand {
kono
parents:
diff changeset
40 virtual void Init ();
kono
parents:
diff changeset
41 Foo *mp_graphicContext;
kono
parents:
diff changeset
42 int m_textAscent;
kono
parents:
diff changeset
43 int m_OkButtonWidth;
kono
parents:
diff changeset
44 int m_OkButtonHeight;
kono
parents:
diff changeset
45 };
kono
parents:
diff changeset
46 class ZColor { };
kono
parents:
diff changeset
47 class ZViewPort2D { };
kono
parents:
diff changeset
48 class ZCursor;
kono
parents:
diff changeset
49 class ZPixmap;
kono
parents:
diff changeset
50 class ZOutputDevice:public ZEventHandler {
kono
parents:
diff changeset
51 public:
kono
parents:
diff changeset
52 typedef ZHorizontalAlignment THorizontalAlignment;
kono
parents:
diff changeset
53 typedef ZVerticalAlignment TVerticalAlignment;
kono
parents:
diff changeset
54 virtual const char *MyName () const { return ""; }
kono
parents:
diff changeset
55 virtual ~ ZOutputDevice ();
kono
parents:
diff changeset
56 virtual Cstring getTitle () const;
kono
parents:
diff changeset
57 virtual void setTitle (const Cstring &) { }
kono
parents:
diff changeset
58 virtual void Init ();
kono
parents:
diff changeset
59 virtual void shutdown ();
kono
parents:
diff changeset
60 virtual void minimize ();
kono
parents:
diff changeset
61 virtual void normalize ();
kono
parents:
diff changeset
62 virtual void raiseToTop ();
kono
parents:
diff changeset
63 virtual ZViewPort2D GetViewPort () const;
kono
parents:
diff changeset
64 virtual void setBackgroundColor (const ZColor & color) = 0;
kono
parents:
diff changeset
65 virtual void Clear () = 0;
kono
parents:
diff changeset
66 virtual void Flush (int forced) = 0;
kono
parents:
diff changeset
67 virtual void dismissCache () { }
kono
parents:
diff changeset
68 virtual int GetDeviceWidth () const = 0;
kono
parents:
diff changeset
69 virtual int GetDeviceHeight () const = 0;
kono
parents:
diff changeset
70 virtual Foo *CreateGraphicContext () = 0;
kono
parents:
diff changeset
71 virtual ZCursor *createCursor (const ZPixmap &, int, int) { return __null; }
kono
parents:
diff changeset
72 virtual void DrawLine (const Foo & gc, int x1, int y1, int x2, int y2) = 0;
kono
parents:
diff changeset
73 virtual void DrawLines (const Foo & gc, const ZDevicePointStruct * points, unsigned int count) = 0;
kono
parents:
diff changeset
74 virtual void FillPolygon (const Foo & gc, const ZDevicePointStruct * points, unsigned int count) = 0;
kono
parents:
diff changeset
75 virtual void DrawPoint (const Foo & gc, int x1, int y1) = 0;
kono
parents:
diff changeset
76 virtual void DrawPoints (const Foo & gc, const ZDevicePointStruct * points, unsigned int count) = 0;
kono
parents:
diff changeset
77 virtual void DrawRectangle (const Foo & gc, int x, int y, int width, int height) = 0;
kono
parents:
diff changeset
78 virtual void DrawRectangles (const Foo & gc, const ZDeviceRectangleStruct * rectangles, unsigned int count) = 0;
kono
parents:
diff changeset
79 virtual void FillRectangle (const Foo & gc, int x, int y, int width, int height) = 0;
kono
parents:
diff changeset
80 virtual void FillRectangles (const Foo & gc, const ZDeviceRectangleStruct * rectangles, unsigned int count) = 0;
kono
parents:
diff changeset
81 virtual void DrawCircle (const Foo & gc, int x, int y, int radius) = 0;
kono
parents:
diff changeset
82 virtual void DrawCircles (const Foo & gc, const ZDeviceCircleStruct * circle, unsigned int count) = 0;
kono
parents:
diff changeset
83 virtual void FillCircle (const Foo & gc, int x, int y, int radius) = 0;
kono
parents:
diff changeset
84 virtual void FillCircles (const Foo & gc, const ZDeviceCircleStruct * circle, unsigned int count) = 0;
kono
parents:
diff changeset
85 virtual void DrawString (const Foo & gc, int xx, int yy, const Cstring & theString, THorizontalAlignment horAlign = HA_Left, TVerticalAlignment verAlign = VA_Baseline) = 0;
kono
parents:
diff changeset
86 virtual void getStringBounds (const Foo & gc, const Cstring & theString, int & width, int & height, int & ascent) const;
kono
parents:
diff changeset
87 };
kono
parents:
diff changeset
88 template < class T > class EMaskContentVector
kono
parents:
diff changeset
89 {
kono
parents:
diff changeset
90 signed m_freelist_idx:32;
kono
parents:
diff changeset
91 EMaskContentVector (const EMaskContentVector < T > &, void *buf);
kono
parents:
diff changeset
92 };
kono
parents:
diff changeset
93 template < class T > EMaskContentVector <
kono
parents:
diff changeset
94 T >::EMaskContentVector (const EMaskContentVector < T > &elem, void *buf):
kono
parents:
diff changeset
95 m_freelist_idx (-1)
kono
parents:
diff changeset
96 {
kono
parents:
diff changeset
97 }
kono
parents:
diff changeset
98 void ZRubberBand2P::Init () {
kono
parents:
diff changeset
99 getOutputDevice ()->getStringBounds (*mp_graphicContext, Cstring ("Ok"), m_OkButtonWidth, m_OkButtonHeight, m_textAscent);
kono
parents:
diff changeset
100 }