diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-29 21:17:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-29 21:17:33 +0000 |
commit | 837eda93ee1d89689925e45e90c59cf948e531bb (patch) | |
tree | eec2ac35fd5fed3cf2c866511cde940aca0f153d /test/Assembler | |
parent | 480decf1a2ef766cf768391f573323128445650c (diff) | |
download | external_llvm-837eda93ee1d89689925e45e90c59cf948e531bb.zip external_llvm-837eda93ee1d89689925e45e90c59cf948e531bb.tar.gz external_llvm-837eda93ee1d89689925e45e90c59cf948e531bb.tar.bz2 |
Do not crash when .ll printing metadata that smells like debug info, but isn't.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler')
-rw-r--r-- | test/Assembler/metadata.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Assembler/metadata.ll b/test/Assembler/metadata.ll new file mode 100644 index 0000000..5346d13 --- /dev/null +++ b/test/Assembler/metadata.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | grep {ret void, !foo !0} +define void @test() { + ret void, !foo !0 +;, !bar !1 +} + +!0 = metadata !{i32 662302, i32 26, metadata !1, null} +!1 = metadata !{i32 4} |