diff --git a/tests/compile/future_imports.pyx b/tests/compile/future_imports.pyx
new file mode 100644
index 0000000000000000000000000000000000000000..4501a882c6532baa11f20145d91fcbc70220b490
--- /dev/null
+++ b/tests/compile/future_imports.pyx
@@ -0,0 +1,9 @@
+# mode: compile
+
+from __future__ import nested_scopes
+
+from __future__ import with_statement
+
+pass
+
+from __future__ import nested_scopes ; from __future__ import nested_scopes