summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll')
-rw-r--r--llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll b/llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll
new file mode 100644
index 00000000000..c2a31d10841
--- /dev/null
+++ b/llvm/test/Assembler/2002-01-24-BadSymbolTableAssert.ll
@@ -0,0 +1,13 @@
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
+
+; This testcase failed due to a bad assertion in SymbolTable.cpp, removed in
+; the 1.20 revision. Basically the symbol table assumed that if there was an
+; abstract type in the symbol table, [in this case for the entry %foo of type
+; void(opaque)* ], that there should have also been named types by now. This
+; was obviously not the case here, and this is valid. Assertion disabled.
+
+declare void "foo"(%bb)
+%bb = type int
+
+implementation
+
OpenPOWER on IntegriCloud