annotate gcc/testsuite/gcc.dg/lto/pr60820_0.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children 84e7813d76e9
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}} } */
kono
parents:
diff changeset
3 /* { dg-skip-if "no alias" { *-*-darwin* } } */
kono
parents:
diff changeset
4 #include <stdio.h>
kono
parents:
diff changeset
5 struct in6_addr {int bah;};
kono
parents:
diff changeset
6 extern const struct in6_addr in6addr_any;
kono
parents:
diff changeset
7 static const struct in6_addr local_in6addr_any = {1};
kono
parents:
diff changeset
8 #pragma weak in6addr_any = local_in6addr_any
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 __attribute__ ((used))
kono
parents:
diff changeset
11 void foo2()
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 fprintf (stderr, "v1: %p, v2: %p\n", &local_in6addr_any, &in6addr_any);
kono
parents:
diff changeset
14 }