stop accepting begin/end around function bodies in the .ll parser, this isn't pascal...
[oota-llvm.git] / test / Transforms / ADCE / dce_pure_call.ll
index 79a360c26803252200f866492c52dc7c61b3de19..66483abbc919e653c474eae29a6f126e45d80775 100644 (file)
@@ -1,9 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -adce | llvm-dis | not grep call
+; RUN: opt -adce -S < %s | not grep call
 
-declare int %strlen(sbyte*)
+declare i32 @strlen(i8*) readonly nounwind
 
-void %test() {
-       ;; Dead call should be deleted!
-       call int %strlen(sbyte *null)
+define void @test() {
+       call i32 @strlen( i8* null )            ; <i32>:1 [#uses=0]
        ret void
 }