summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.law/operators31.C
blob: 8ad9c472b3fe08d29fff96df91581e5505d1406f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do assemble  }
// GROUPS passed operators
// opr-del file
// From: Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de>
// Date:     Thu, 4 Aug 94 08:19:20 +0200
// Subject:  delete [] A::s
// Message-ID: <9408040619.AA27602@azu.informatik.uni-stuttgart.de>

class A
{
  char *s;
public:
  void f ();
};

void A::f ()
{
  delete [] A::s;
}