DI: Require subprogram definitions to be distinct
[oota-llvm.git] / test / Assembler / 2007-01-02-Undefined-Arg-Type.ll
index b12a897e7abd3ef812e85726845e418c222fa235..a0542ee001373e2a9b20e2eff230f7a6ec6abc2d 100644 (file)
@@ -1,10 +1,11 @@
 ; The assembler should catch an undefined argument type .
-; RUN: llvm-as < %s -o /dev/null -f 2>&1 | grep "Reference to abstract argument"
+; RUN: not llvm-as %s -o /dev/null 2>&1 | FileCheck %s
+
+; CHECK: use of undefined type named 'typedef.bc_struct'
 
 ; %typedef.bc_struct = type opaque
 
-implementation   ; Functions:
 
-define bool %someFunc(i32* %tmp.71.reload, %typedef.bc_struct* %n1) {
-       ret bool true
+define i1 @someFunc(i32* %tmp.71.reload, %typedef.bc_struct* %n1) {
+       ret i1 true
 }