diff test/throw1.d @ 100:5071469303d4 trunk

[svn r104] TONS OF FIXES. Split up declaration, constant initializer gen and definition for globals, structs, classes and functions. Improved ClassInfo support (not complete), not in vtable yet. Fixed a bunch of forward reference problems. Much more. Major commit! :)
author lindquist
date Fri, 16 Nov 2007 08:21:47 +0100
parents 4648206ca213
children
line wrap: on
line diff
--- a/test/throw1.d	Thu Nov 15 00:24:44 2007 +0100
+++ b/test/throw1.d	Fri Nov 16 08:21:47 2007 +0100
@@ -6,17 +6,18 @@
 {
 }
 
-void func()
+void func(bool b)
 {
-    if (rand() & 1)
+    if (b)
         throw new C;
 }
 
 int main()
 {
+    bool b = true;
     try
     {
-        func();
+        func(b);
     }
     catch(Object)
     {