2 /* { dg-options "-O3" } */
4 #define PACKED __attribute__(( packed ))
6 struct PACKED aostk_point_u8
{
11 struct PACKED aostk_size_u8
{
16 struct PACKED aostk_glyph
{
18 struct aostk_size_u8 size
;
20 struct aostk_point_u8 advance
;
27 struct PACKED aostk_font
{
28 unsigned short numglyphs
;
30 struct aostk_glyph
* glyphs
;
33 struct aostk_font glob_font
;
35 static struct aostk_glyph
* aostk_get_glyph(struct aostk_font
* f
, unsigned int c
) {
39 int aostk_font_strwidth(struct aostk_font
* font
, const char* str
) {
40 struct aostk_glyph
* g
= aostk_get_glyph(font
, 0);
45 __attribute__ ((noinline
, noclone
))
51 int main (int argc
, char *argv
[])
53 return (int) aostk_font_strwidth (get_some_font (), "sth");