summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lto/20101014-1_0.C
blob: d2f599e40b555468384e5d4fb7186719fd0699dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// { dg-lto-do run }

static const char *fname;
struct S
{
  S () { fname = __func__; }
};
extern "C" void abort (void);
int
main ()
{
  S tmp;
  if (fname[0] != 'S')
    abort ();
  return 0;
}