this test isn't useful since we added @ notation for globals.
[oota-llvm.git] / test / Assembler / 2002-08-16-ConstExprInlined.llx
index 37d94248c4744a54867d7fda531d55ccadcf7d5d..f233bacca46b75beb73c66c89e8a2db8162ba64d 100644 (file)
@@ -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: as < %s | dis | 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
 }