changeset 272:2f12017c3af9

invariant doesn't throw InvariantException Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn> 2005-02-06 news:s2chd2-1n2.ln1@lnews.kuehne.cn
author thomask
date Sun, 06 Feb 2005 11:35:02 +0000
parents e9ef8eec28b1
children 68b883fe4fad
files run/invariant_25.d
diffstat 1 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run/invariant_25.d	Sun Feb 06 11:35:02 2005 +0000
@@ -0,0 +1,25 @@
+// $HeadURL$
+// $Date$
+// $Author$
+
+// @author@	Thomas Kuehne <thomas-dloop@kuehne.THISISSPAM.cn>
+// @date@	2005-02-06
+// @uri@	news:s2chd2-1n2.ln1@lnews.kuehne.cn
+
+module dstress.run.invariant_25;
+
+class MyClass{
+	invariant{
+		assert(0);
+	}
+}
+
+int main(){
+	try{
+		MyClass c = new MyClass();
+		assert(c);
+	}catch(InvariantException e){
+		return 0;
+	}
+	assert(0);
+}