Add another optimization from PR2330. Also catch some missing cases that are
[oota-llvm.git] / test / Verifier / 2005-03-21-UndefinedTypeReference.ll
index 77fb7659039916dada6242ca5c2bd3303ebf77d1..19a9826ea52cd058ea418dc2a0fa6ade27cf49c6 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: not llvm-as -f %s -o /dev/null
+; RUN: not llvm-as < %s |& grep {Reference to an undefined type}
 
-void %test() {
+define void @test() {
         malloc %InvalidType
         ret void
 }