annotate gcc/testsuite/gcc.dg/lto/pr60820_0.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-lto-do link } */
kono
parents:
diff changeset
2 /* { dg-lto-options {{-flto -r -nostdlib -O2}} } */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
3 /* { dg-extra-ld-options "-flinker-output=nolto-rel" } */
111
kono
parents:
diff changeset
4 /* { dg-skip-if "no alias" { *-*-darwin* } } */
kono
parents:
diff changeset
5 #include <stdio.h>
kono
parents:
diff changeset
6 struct in6_addr {int bah;};
kono
parents:
diff changeset
7 extern const struct in6_addr in6addr_any;
kono
parents:
diff changeset
8 static const struct in6_addr local_in6addr_any = {1};
kono
parents:
diff changeset
9 #pragma weak in6addr_any = local_in6addr_any
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 __attribute__ ((used))
kono
parents:
diff changeset
12 void foo2()
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 fprintf (stderr, "v1: %p, v2: %p\n", &local_in6addr_any, &in6addr_any);
kono
parents:
diff changeset
15 }