diff --git a/test/Assembler/2004-03-30-UnclosedFunctionCrash.llx b/test/Assembler/2004-03-30-UnclosedFunctionCrash.llx
new file mode 100644
index 00000000000..0838066b582
--- /dev/null
+++ b/test/Assembler/2004-03-30-UnclosedFunctionCrash.llx
@@ -0,0 +1,3 @@
+; RUN: llvm-as %s 2>&1 | grep error
+
+void %foo() {