Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/lto/pr59323_0.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-lto-do link } */ |
2 /* { dg-lto-options { { -O2 -g -flto } } } */ | |
131 | 3 /* { dg-extra-ld-options { -r -nostdlib -flinker-output=nolto-rel } } */ |
111 | 4 |
5 extern void bar(void); | |
6 | |
7 int main(int argc, char **argv) | |
8 { | |
9 int i; | |
10 | |
11 if (argc == 1) { | |
12 enum { X }; | |
13 | |
14 bar(); | |
15 | |
16 { | |
17 enum { X }; | |
18 | |
19 asm goto ("" : : : : lab); | |
20 lab: | |
21 ; | |
22 } | |
23 } | |
24 | |
25 { | |
26 enum { X }; | |
27 | |
28 int foo(void) | |
29 { | |
30 return argv[0][0]; | |
31 } | |
32 | |
33 i = foo(); | |
34 } | |
35 | |
36 return i; | |
37 } |