This test case previously passed the assembler without error even though
authorReid Spencer <rspencer@reidspencer.com>
Tue, 2 Jan 2007 21:56:26 +0000 (21:56 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Tue, 2 Jan 2007 21:56:26 +0000 (21:56 +0000)
it used an undefined type name as a parameter argument. This bug in the
assembler has been fixed and it is now necessary to define the type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32826 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/Alpha/2005-07-12-TwoMallocCalls.ll

index 1761d5d0e75bf65d8fe64a58a6b227218efbe380..59c65053e52f3c7641fbbe0cb5402d5ea06de4a1 100644 (file)
@@ -1,6 +1,8 @@
 ; There should be exactly two calls here (memset and malloc), no more.
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep jsr | wc -l | grep 2
 
+%typedef.bc_struct = type opaque
+
 implementation   ; Functions:
 
 declare void %llvm.memset.i64(sbyte*, ubyte, ulong, uint)