summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/externC1.C
blob: 0e485053a5e4611b90fefdb92407aec82bd06ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// { dg-do assemble  }
// Origin: Mark Mitchell <mitchell@codesourcery.com>

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

  struct S
  {
    T t;
  };
}

S* s;

void f ()
{
  delete s;
}