blob: ed05e0b9924bb8af3fd2a0242df010330ff1953d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// { dg-options "-O" }
template<typename T> class OwnPtr {
public:
~OwnPtr();
};
template<class T> class GlyphMetricsMap {
public:
GlyphMetricsMap() { }
OwnPtr<int> m_pages;
};
class SimpleFontData {
public:
void boundsForGlyph() const;
};
inline __attribute__((__always_inline__))
void SimpleFontData::boundsForGlyph() const
{
new GlyphMetricsMap<int>;
}
void offsetToMiddleOfGlyph(const SimpleFontData* fontData)
{
fontData->boundsForGlyph();
}
int main() {}
|