summaryrefslogtreecommitdiffstats
path: root/llvm/test/Demangle
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-08-10 15:04:56 +0000
committerZachary Turner <zturner@google.com>2018-08-10 15:04:56 +0000
commita17721cf5d6951662801b6cf218d63bc481fa245 (patch)
tree1e731d71ebef577c95600dfdb8e05793ac580370 /llvm/test/Demangle
parente89f2fa65703f1a497d7e9b20dc470467cee66ed (diff)
downloadbcm5719-llvm-a17721cf5d6951662801b6cf218d63bc481fa245.tar.gz
bcm5719-llvm-a17721cf5d6951662801b6cf218d63bc481fa245.zip
[MS Demangler] Properly demangle conversion operators.
These were completely broken before. We need to handle the 'B' operator tag. llvm-svn: 339436
Diffstat (limited to 'llvm/test/Demangle')
-rw-r--r--llvm/test/Demangle/ms-conversion-operators.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/Demangle/ms-conversion-operators.test b/llvm/test/Demangle/ms-conversion-operators.test
new file mode 100644
index 00000000000..afc34aab4fa
--- /dev/null
+++ b/llvm/test/Demangle/ms-conversion-operators.test
@@ -0,0 +1,21 @@
+; RUN: llvm-undname < %s | FileCheck %s
+
+; CHECK-NOT: Invalid mangled name
+
+??$?BH@TemplateOps@@QAEHXZ
+??BOps@@QAEHXZ
+??BConstOps@@QAE?BHXZ
+??BVolatileOps@@QAE?CHXZ
+??BConstVolatileOps@@QAE?DHXZ
+??$?BN@TemplateOps@@QAENXZ
+??BOps@@QAENXZ
+??BConstOps@@QAE?BNXZ
+??BVolatileOps@@QAE?CNXZ
+??BConstVolatileOps@@QAE?DNXZ
+??BCompoundTypeOps@@QAEPAHXZ
+??BCompoundTypeOps@@QAEPBHXZ
+??BCompoundTypeOps@@QAE$$QAHXZ
+??BCompoundTypeOps@@QAE?AU?$Foo@H@@XZ
+??$?BH@CompoundTypeOps@@QAE?AU?$Bar@U?$Foo@H@@@@XZ
+??$?BPAH@TemplateOps@@QAEPAHXZ
+
OpenPOWER on IntegriCloud