Debian Codegraph @

gcc/testsuite/gcc.dg/lto/pr81406_0.c

raw
1 /* PR lto/81406 */
2 /* { dg-lto-do link } */
3 /* { dg-lto-options { { -O2 -g -flto } } } */
4 /* { dg-extra-ld-options { -g -r -nostdlib -flinker-output=nolto-rel } } */
5
6 int a;
7 int *foo (void);
8
9 static inline int __attribute__ ((__artificial__))
10 bar (void)
11 {
12 if (a)
13 *foo () = 2;
14 }
15
16 void *
17 baz (void)
18 {
19 return (void *) bar;
20 }