summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20091020-2_0.c
blob: fb1a82bb8c6b536f958c328e115302f11117b91a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-lto-do link } */
/* { dg-lto-options {{-fPIC -r -nostdlib -flto}} } */

typedef struct {
    int NumPackStreams;
} CSzAr;
typedef struct {
    CSzAr db;
} CSzArEx;
int SzArEx_Init(CSzArEx *p)
{
  return p->db.NumPackStreams;
}
int SzArEx_GetFolderFullPackSize(const CSzArEx *p)
{
  return p->db.NumPackStreams;
}