From d701aa7bed07cad16e33594c59251c958df2c74d Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Tue, 4 Aug 2009 02:26:56 +0000 Subject: Constants and Metadata share ValueList. This means they must be emitted interleaved (using appropriate BLOCK_IDs) otherwise ValuePtrs index gets out of sync. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78033 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Bitcode/metadata.ll | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/Bitcode/metadata.ll (limited to 'test/Bitcode') diff --git a/test/Bitcode/metadata.ll b/test/Bitcode/metadata.ll new file mode 100644 index 0000000..d72221a --- /dev/null +++ b/test/Bitcode/metadata.ll @@ -0,0 +1,5 @@ +; RUN: llvm-as < %s | llvm-dis -f -o /dev/null + +!llvm.foo = !{!0} +!0 = metadata !{i32 42} +@my.str = internal constant [4 x i8] c"foo\00" -- cgit v1.1