Testcase breaking switch optimization
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 14 Aug 2008 18:28:21 +0000 (20:28 +0200)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Thu, 14 Aug 2008 18:28:21 +0000 (20:28 +0200)
tests/errors/e_switch.pyx [new file with mode: 0644]

diff --git a/tests/errors/e_switch.pyx b/tests/errors/e_switch.pyx
new file mode 100644 (file)
index 0000000..405fd01
--- /dev/null
@@ -0,0 +1,12 @@
+cdef int x = 3
+
+if x == NONEXISTING:
+    print 2
+elif x == 2:
+    print 2342
+elif x == 4:
+    print 34
+
+_ERRORS = """
+4:23: undeclared name not builtin: NONEXISTING
+"""