aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler/invalid-mdtemplatevalueparameter-missing-type.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Assembler/invalid-mdtemplatevalueparameter-missing-type.ll')
-rw-r--r--test/Assembler/invalid-mdtemplatevalueparameter-missing-type.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Assembler/invalid-mdtemplatevalueparameter-missing-type.ll b/test/Assembler/invalid-mdtemplatevalueparameter-missing-type.ll
new file mode 100644
index 0000000..8ea3acc
--- /dev/null
+++ b/test/Assembler/invalid-mdtemplatevalueparameter-missing-type.ll
@@ -0,0 +1,5 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+; CHECK: [[@LINE+2]]:44: error: missing required field 'type'
+!0 = !MDTemplateValueParameter(tag: DW_TAG_template_value_parameter,
+ value: i32 7)