view run/d/delete_14_A.d @ 1615:8d5c55d163fd

Fix some outdated tests that used auto to mean scope.
author Christian Kamm <kamm incasoftware de>
date Sun, 12 Jul 2009 16:44:52 +0200
parents 81222734adf3
children
line wrap: on
line source

// $HeadURL$
// $Date$
// $Author$

// @author@	<h3r3tic@mat.uni.torun.pl>
// @date@	2006-05-23
// @uri@	http://d.puremagic.com/issues/show_bug.cgi?id=154

module dstress.run.d.delete_14_A;

class Foo{
	new (size_t s){
		return (new byte[s]).ptr;
	}

	delete(void* p){
		if (p){
			delete p;
		}
	}
}

int main() {
	Foo f = new Foo();
	delete f;

	return 0;
}