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