blob: 09b2bf2e67da537ab773274ff87ebeab70230e5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// { dg-do run { target i?86-*-* x86_64-*-* } }
// { dg-require-effective-target ilp32 }
// Test that stdcall doesn't prevent us from using op delete.
// Contributed by Jason Merrill <jason@cygnus.com>
struct A {
void operator delete (void *) __attribute__ ((stdcall));
};
void A::operator delete (void *) { }
int main()
{
A* ap = new A;
delete ap;
}
|