summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit8abe6bc291e81bae9f5fc5462a8d0b43cd0a256d (patch)
treee7fa7b7835aa011871ec28a1603ea15e4ca52137 /llvm/test/Bitcode
parentf43cf709cb6234b8e657a6d052a80ab5d580334d (diff)
downloadbcm5719-llvm-8abe6bc291e81bae9f5fc5462a8d0b43cd0a256d.tar.gz
bcm5719-llvm-8abe6bc291e81bae9f5fc5462a8d0b43cd0a256d.zip
Constants and Metadata share ValueList. This means they must be emitted interleaved (using appropriate BLOCK_IDs) otherwise ValuePtrs index gets out of sync.
llvm-svn: 78033
Diffstat (limited to 'llvm/test/Bitcode')
-rw-r--r--llvm/test/Bitcode/metadata.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/metadata.ll b/llvm/test/Bitcode/metadata.ll
new file mode 100644
index 00000000000..d72221a6b40
--- /dev/null
+++ b/llvm/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"
OpenPOWER on IntegriCloud