aboutsummaryrefslogtreecommitdiff
path: root/test/Bitcode
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-08-04 02:26:56 +0000
committerDevang Patel <dpatel@apple.com>2009-08-04 02:26:56 +0000
commitd701aa7bed07cad16e33594c59251c958df2c74d (patch)
tree94a472ac23a8912e77f306d7ef315858d8186139 /test/Bitcode
parentf0409ea488ec2cf27daeb192d18e206b11c6360f (diff)
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
Diffstat (limited to 'test/Bitcode')
-rw-r--r--test/Bitcode/metadata.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Bitcode/metadata.ll b/test/Bitcode/metadata.ll
new file mode 100644
index 0000000000..d72221a6b4
--- /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"