diff options
author | Chris Lattner <sabre@nondot.org> | 2008-04-19 22:26:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-04-19 22:26:29 +0000 |
commit | e972299f340413a7dd288dc019b21404a92e9354 (patch) | |
tree | 3f7c5fc1f527928f9289e70394c7b40b4c2c6df0 /test/Assembler/2002-08-16-ConstExprInlined.ll | |
parent | df7d2b4ce89599ca75d4dc4fd581ce4507f73f2d (diff) | |
download | external_llvm-e972299f340413a7dd288dc019b21404a92e9354.zip external_llvm-e972299f340413a7dd288dc019b21404a92e9354.tar.gz external_llvm-e972299f340413a7dd288dc019b21404a92e9354.tar.bz2 |
rename *.llx -> *.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2002-08-16-ConstExprInlined.ll')
-rw-r--r-- | test/Assembler/2002-08-16-ConstExprInlined.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/Assembler/2002-08-16-ConstExprInlined.ll b/test/Assembler/2002-08-16-ConstExprInlined.ll new file mode 100644 index 0000000..f233bac --- /dev/null +++ b/test/Assembler/2002-08-16-ConstExprInlined.ll @@ -0,0 +1,22 @@ +; In this testcase, the bytecode reader or writer is not correctly handling the +; ConstExpr reference. Disassembling this program assembled yields invalid +; assembly (because there are placeholders still around), which the assembler +; dies on. + +; There are two things that need to be fixed here. Obviously assembling and +; 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 + +@.LC0 = internal global [4 x i8] c"foo\00" ; <[4 x i8]*> [#uses=1] +@X = global i8* null ; <i8**> [#uses=0] + +declare i32 @puts(i8*) + +define void @main() { +bb1: + %reg211 = call i32 @puts( i8* getelementptr ([4 x i8]* @.LC0, i64 0, i64 0) ) ; <i32> [#uses=0] + ret void +} |