summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20100227-1_0.c
blob: 4145c7001ef6ff98160fd222c45cef72ced484f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-lto-do link } */
/* { dg-extra-ld-options "-w" } */

/* Make sure we do not ICE on the invalid re-declaration of s.  */

extern void f(void);
const char *s = "Hello, world!";

int main(void)
{
  f();
  return 0;
}