summaryrefslogtreecommitdiffstats
path: root/test/Verifier
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-03-08 00:28:57 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2017-03-08 00:28:57 +0000
commitdf032da7f1a1df65433f504223f4c4cf7a620332 (patch)
treeda2cb8ef43e5775815f7a552fd85b0f52a47ca6c /test/Verifier
parent50ccd80b5846734f3623e04dc225fc21769166e0 (diff)
[DebugInfo] Make legal and emit DW_OP_swap and DW_OP_xderef
Differential Revision: https://reviews.llvm.org/D29672 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297247 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Verifier')
-rw-r--r--test/Verifier/diexpression-swap.ll5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Verifier/diexpression-swap.ll b/test/Verifier/diexpression-swap.ll
new file mode 100644
index 000000000000..b227c54bfa88
--- /dev/null
+++ b/test/Verifier/diexpression-swap.ll
@@ -0,0 +1,5 @@
+; RUN: not opt -S < %s 2>&1 | FileCheck %s
+
+!named = !{!0}
+; CHECK: invalid expression
+!0 = !DIExpression(DW_OP_swap)