1 /* { dg-lto-do link } */
2 /* { dg-require-effective-target mpx } */
3 /* { dg-lto-options { { -O2 -flto -flto-partition=max -fcheck-pointer-bounds -mmpx } } } */
5 int test1 (const char *c
)
10 int test2 (const char *c
)
15 int test1_alias (const char *c
) __attribute__ ((alias ("test1")));
16 int test2_alias (const char *c
) __attribute__ ((alias ("test2")));
20 int (*fnptr
[2]) (const char *);
23 struct S s
= {test1_alias
, test2_alias
};
25 int main (int argc
, const char **argv
)
27 return s
.fnptr
[argc
] (argv
[0]);