diff options
author | Devang Patel <dpatel@apple.com> | 2009-11-03 19:06:07 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-11-03 19:06:07 +0000 |
commit | e8bc45a645f1df1c9f8b23c6f29247a61af14f19 (patch) | |
tree | 7d7956391dc15fbd141bcb7b73c4697719cf4d39 /test/DebugInfo/2009-11-03-InsertExtractValue.ll | |
parent | 747409a290e119601c8fcb8bc429aafcae186179 (diff) |
Parse debug info attached with insertvalue and extractvalue instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/DebugInfo/2009-11-03-InsertExtractValue.ll')
-rw-r--r-- | test/DebugInfo/2009-11-03-InsertExtractValue.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/DebugInfo/2009-11-03-InsertExtractValue.ll b/test/DebugInfo/2009-11-03-InsertExtractValue.ll new file mode 100644 index 0000000000..d9a67d64b6 --- /dev/null +++ b/test/DebugInfo/2009-11-03-InsertExtractValue.ll @@ -0,0 +1,11 @@ +; RUN: llvm-as < %s | llvm-dis | FileCheck %s + +!0 = metadata !{i32 42} + +define <{i32, i32}> @f1() { +; CHECK: !dbg !0 + %r = insertvalue <{ i32, i32 }> zeroinitializer, i32 4, 1, !dbg !0 +; CHECK: !dbg !0 + %e = extractvalue <{ i32, i32 }> %r, 0, !dbg !0 + ret <{ i32, i32 }> %r +} |