new
From-SVN: r26395
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// Test that stdcall doesn't prevent us from using op delete.
|
||||
// Contributed by Jason Merrill <jason@cygnus.com>
|
||||
// Skip if not target: i?86-*-*
|
||||
|
||||
struct A {
|
||||
void operator delete (void *) __attribute__ ((stdcall));
|
||||
};
|
||||
|
||||
void A::operator delete (void *) { }
|
||||
|
||||
int main()
|
||||
{
|
||||
A* ap = new A;
|
||||
delete ap;
|
||||
}
|
||||
Reference in New Issue
Block a user