2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / lto / pr59323_0.c
blobb5910589158a4c219e4f49c8d778156bd2d9c9bb
1 /* { dg-lto-do link } */
2 /* { dg-lto-options { { -O2 -g -flto } } } */
3 /* { dg-extra-ld-options { -r -nostdlib } } */
5 extern void bar(void);
7 int main(int argc, char **argv)
9 int i;
11 if (argc == 1) {
12 enum { X };
14 bar();
17 enum { X };
19 asm goto ("" : : : : lab);
20 lab:
26 enum { X };
28 int foo(void)
30 return argv[0][0];
33 i = foo();
36 return i;