summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/diglobalvariable-3.8.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Bitcode/diglobalvariable-3.8.ll')
-rw-r--r--llvm/test/Bitcode/diglobalvariable-3.8.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Bitcode/diglobalvariable-3.8.ll b/llvm/test/Bitcode/diglobalvariable-3.8.ll
new file mode 100644
index 00000000000..55b3f656c57
--- /dev/null
+++ b/llvm/test/Bitcode/diglobalvariable-3.8.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-dis -o - %s.bc | FileCheck %s
+
+; CHECK: !0 = distinct !DIGlobalVariable(name: "a", scope: null, isLocal: false, isDefinition: true, expr: !1)
+; CHECK: !1 = !DIExpression(DW_OP_constu, 42, DW_OP_stack_value)
+
+!named = !{!0}
+
+!0 = distinct !DIGlobalVariable(name: "a", variable: i32 42)
OpenPOWER on IntegriCloud