diff --git a/tests/run/charcomparisonT412.pyx b/tests/run/charcomparisonT412.pyx
new file mode 100644
index 0000000000000000000000000000000000000000..ece80a97f73d53aa7a7bc1fe0ca3184a4ce77f78
--- /dev/null
+++ b/tests/run/charcomparisonT412.pyx
@@ -0,0 +1,11 @@
+def f():
+    """
+    >>> f()
+    True
+    True
+    """
+
+    cdef char a
+    a = 62
+    print (a == '>')
+    print (a == <char>'>')