diff options
Diffstat (limited to 'test/Assembler/2002-08-16-ConstExprInlined.llx')
-rw-r--r-- | test/Assembler/2002-08-16-ConstExprInlined.llx | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/test/Assembler/2002-08-16-ConstExprInlined.llx b/test/Assembler/2002-08-16-ConstExprInlined.llx index b344d9facc..f233bacca4 100644 --- a/test/Assembler/2002-08-16-ConstExprInlined.llx +++ b/test/Assembler/2002-08-16-ConstExprInlined.llx @@ -1,5 +1,5 @@ ; In this testcase, the bytecode reader or writer is not correctly handling the -; ConstExpr reference. Disassembling this program assembled yields invalid +; ConstExpr reference. Disassembling this program assembled yields invalid ; assembly (because there are placeholders still around), which the assembler ; dies on. @@ -7,19 +7,16 @@ ; disassembling this would be good, but in addition to that, the bytecode ; reader should NEVER produce a program "successfully" with placeholders still ; around! +; +; RUN: llvm-as < %s | llvm-dis | llvm-as -; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | llvm-as +@.LC0 = internal global [4 x i8] c"foo\00" ; <[4 x i8]*> [#uses=1] +@X = global i8* null ; <i8**> [#uses=0] -%.LC0 = internal global [4 x sbyte] c"foo\00" ; <[4 x sbyte]*> [#uses=1] +declare i32 @puts(i8*) -%X = global sbyte * null - -implementation ; Functions: - -declare int %puts(sbyte*) - -void %main() { -bb1: ;[#uses=0] - %reg211 = call int %puts( sbyte* getelementptr ([4 x sbyte]* %.LC0, uint 0, uint 0) ) ; <int> [#uses=0] +define void @main() { +bb1: + %reg211 = call i32 @puts( i8* getelementptr ([4 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] ret void } |