summaryrefslogtreecommitdiffstats
path: root/llvm/test/Assembler/invalid-metadata-function-local-complex-3.ll
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-11 01:34:46 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-12-11 01:34:46 +0000
commitf910e8a04dc862d44349f34d38f11e385aefbea8 (patch)
treef29607c338b4871018c60592868a1effad28a639 /llvm/test/Assembler/invalid-metadata-function-local-complex-3.ll
parentb3e96f700e390164e3a99f64b236844a78ca331f (diff)
downloadbcm5719-llvm-f910e8a04dc862d44349f34d38f11e385aefbea8.tar.gz
bcm5719-llvm-f910e8a04dc862d44349f34d38f11e385aefbea8.zip
IR: Add 'invalid-' to test names for invalid assembly
Take the opportunity to sort these by `metadata`. llvm-svn: 223993
Diffstat (limited to 'llvm/test/Assembler/invalid-metadata-function-local-complex-3.ll')
-rw-r--r--llvm/test/Assembler/invalid-metadata-function-local-complex-3.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/Assembler/invalid-metadata-function-local-complex-3.ll b/llvm/test/Assembler/invalid-metadata-function-local-complex-3.ll
new file mode 100644
index 00000000000..647f93ecabe
--- /dev/null
+++ b/llvm/test/Assembler/invalid-metadata-function-local-complex-3.ll
@@ -0,0 +1,10 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+define void @foo(i32 %v) {
+entry:
+; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: invalid use of function-local name
+ call void @llvm.bar(metadata !{metadata !{i32 %v}})
+ ret void
+}
+
+declare void @llvm.bar(metadata)
OpenPOWER on IntegriCloud