Index: tests/exceptions/.expect/cor_resumer.txt
===================================================================
--- tests/exceptions/.expect/cor_resumer.txt	(revision c3e510b1da16c821b3fdca7930f911d1a03714ab)
+++ tests/exceptions/.expect/cor_resumer.txt	(revision c3e510b1da16c821b3fdca7930f911d1a03714ab)
@@ -0,0 +1,23 @@
+main start
+10
+9
+8
+7
+6
+5
+4
+3
+2
+1
+0
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
+main end
Index: tests/exceptions/cor_resumer.cfa
===================================================================
--- tests/exceptions/cor_resumer.cfa	(revision c3e510b1da16c821b3fdca7930f911d1a03714ab)
+++ tests/exceptions/cor_resumer.cfa	(revision c3e510b1da16c821b3fdca7930f911d1a03714ab)
@@ -0,0 +1,42 @@
+#include <fstream.hfa>
+#include <thread.hfa>
+
+int num_links = 10;
+
+exception unwind { int num; };
+vtable(unwind) unwind_vt;
+
+coroutine Node { int cnt;  unwind except; };
+void ?{}( Node & this, int cnt ) { this.cnt = cnt; }
+
+void main( Node & this ) with( this ) {
+    sout | cnt;
+    if ( cnt == 0 ) {
+        except{ &unwind_vt, cnt };
+        resumeAt( resumer( this ), except );
+        return;
+    }
+    Node next{ cnt - 1 };
+    resume( next );
+    try {
+        while( ! poll( this ) ) { yield(); }
+    } catch( unwind * e ) {
+        e->num++;
+        if ( e->num != cnt ) {
+            sout | "exception count and thread count should be consistent!";
+            abort();
+        }
+        sout | e->num;
+        if ( cnt == num_links ) return;
+        except{ &unwind_vt, e->num };
+        resumeAt( resumer( this ), except );
+    }
+
+}
+
+int main() {
+	sout | "main start";
+    Node n{ num_links };
+    resume( n );
+	sout | "main end";
+}
Index: tests/exceptions/pingpong_nonlocal.cfa
===================================================================
--- tests/exceptions/pingpong_nonlocal.cfa	(revision e0332dd3c670f11f9ee57a49f28936c7d21ef637)
+++ tests/exceptions/pingpong_nonlocal.cfa	(revision c3e510b1da16c821b3fdca7930f911d1a03714ab)
@@ -1,5 +1,4 @@
 #include <fstream.hfa>
 #include <thread.hfa>
-#include <fstream.hfa>
 #include <mutex_stmt.hfa>
 
