From 837eda93ee1d89689925e45e90c59cf948e531bb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Dec 2009 21:17:33 +0000 Subject: 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 --- test/Assembler/metadata.ll | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/Assembler/metadata.ll (limited to 'test/Assembler/metadata.ll') 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} -- cgit v1.1