Mercurial > hg > CbC > CbC_gcc
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 |
rev | line source |
---|---|
111 | 1 /* { dg-lto-do link } */ |
2 /* { dg-lto-options {{-flto -r -nostdlib -O2}} } */ | |
131 | 3 /* { dg-extra-ld-options "-flinker-output=nolto-rel" } */ |
111 | 4 /* { dg-skip-if "no alias" { *-*-darwin* } } */ |
5 #include <stdio.h> | |
6 struct in6_addr {int bah;}; | |
7 extern const struct in6_addr in6addr_any; | |
8 static const struct in6_addr local_in6addr_any = {1}; | |
9 #pragma weak in6addr_any = local_in6addr_any | |
10 | |
11 __attribute__ ((used)) | |
12 void foo2() | |
13 { | |
14 fprintf (stderr, "v1: %p, v2: %p\n", &local_in6addr_any, &in6addr_any); | |
15 } |