aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/debug/pr41893-1.c
blob: 6da30708e5716e2aa63f242baafe3e32b358c449 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR debug/41893 */
/* { dg-do link } */
/* { dg-require-effective-target lto } */
/* { dg-options "-flto -fwhole-program -O" } */
/* { dg-additional-sources "pr41893-2.c" } */

struct S { int v; };
struct S s;

void __attribute__((externally_visible))
func1 (void)
{
  struct S *p = &s;
}

int main() { return 0; }