summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.old-deja/g++.other/externC1.C
blob: ca60b021754158248c3141f4796bc13ebcde25ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Build don't link:
// Origin: Mark Mitchell <mitchell@codesourcery.com>

extern "C"
{
  struct T
  {
    ~T ();
  };

  struct S
  {
    T t;
  };
}

S* s;

void f ()
{
  delete s;
}
OpenPOWER on IntegriCloud