Index: tests/enum_tests/.expect/input.txt
===================================================================
--- tests/enum_tests/.expect/input.txt	(revision d7b399fdc6a1ce87c830b273e13dbce582c560d8)
+++ tests/enum_tests/.expect/input.txt	(revision d7b399fdc6a1ce87c830b273e13dbce582c560d8)
@@ -0,0 +1,39 @@
+"BBB"
+"AB"
+"AAA"
+"AB"
+"BBB"
+"AAA"
+"AB"
+"AA"
+"B"
+"BBB"
+"AAA"
+"AA"
+"AB"
+"B"
+"BBB"
+"AAA"
+"AA"
+"AB"
+"B"
+"AAA"
+"B"
+"CB"
+"AC"
+"CB"
+"AC"
+"BBB"
+"AAA"
+"AA"
+missing data
+"AAA"
+"B"
+"CB"
+"AC"
+"CB"
+"AC"
+"BBB"
+"AAA"
+"AA"
+missing data
Index: tests/enum_tests/.in/input.txt
===================================================================
--- tests/enum_tests/.in/input.txt	(revision d7b399fdc6a1ce87c830b273e13dbce582c560d8)
+++ tests/enum_tests/.in/input.txt	(revision d7b399fdc6a1ce87c830b273e13dbce582c560d8)
@@ -0,0 +1,12 @@
+BBBABAAAAB
+BBBAAAABAAB
+BBB AAA AA AB B
+BBB
+AAA
+AA
+AB
+B
+AAABCBACCBAC
+BBBAAAAABB
+AAABCBACCBAC
+BBBAAAAABB
Index: tests/enum_tests/input.cfa
===================================================================
--- tests/enum_tests/input.cfa	(revision d7b399fdc6a1ce87c830b273e13dbce582c560d8)
+++ tests/enum_tests/input.cfa	(revision d7b399fdc6a1ce87c830b273e13dbce582c560d8)
@@ -0,0 +1,18 @@
+#include <fstream.hfa>
+#include <enum.hfa>
+
+int main() {
+	enum(int) E { BBB, AAA, AA, AB, B, CB, AC };
+	E e;
+
+	for () {
+		try {
+			sin | e;
+		} catch( missing_data * ) {
+			sout | "missing data";
+			continue;									// try again
+		} // try
+	  if ( eof( sin ) ) break;
+		sout | "\"" | e | "\"";
+	} // for
+}
