annotate gcc/testsuite/g++.dg/lto/pr65302_0.C @ 131:84e7813d76e9

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