Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/lto/pr81406_0.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 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 } |