Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / lto / 20091013-1_0.c
blob0fecce04f09be365ee34ad3b5d7381a1dbed2b41
1 /* { dg-lto-do link } */
2 /* { dg-lto-options {{-fPIC -r -nostdlib -flto} {-fPIC -r -nostdlib -O2 -flto}} } */
4 void * HeapAlloc(void*,unsigned int,unsigned long);
6 typedef struct tagGdiFont GdiFont;
8 typedef struct tagDC {
9 int xunused;
10 GdiFont *gdiFont;
11 unsigned int font_code_page;
12 } DC;
14 DC *alloc_dc_ptr( void *funcs, unsigned short magic )
16 DC *dc;
17 if (!(dc = HeapAlloc( 0, 0, sizeof(*dc) ))) return ((void *)0);
18 dc->gdiFont = 0;
19 return dc;