aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/crash18.C
blob: ce0f64621c90f9bf7fee1259eb09e3f2a50370f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Build don't link:
// Special g++ Options: -fvtable-gc
// Origin: Mark Mitchell <mitchell@codesourcery.com>
// excess errors test - XFAIL *-*-coff *-*-aout *-*-hms mips*-sgi-irix*

struct S {
  virtual void f ();
};

S* s;

void g ()
{
  s->f ();
}