summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/debug-info-ms-abi.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-06-16 01:21:28 +0000
committerReid Kleckner <rnk@google.com>2016-06-16 01:21:28 +0000
commit7b5a49b699e71ac558b2d451447f9d86fe25613d (patch)
tree8acf57148d7f7c17e1a46a25da9d8b0cbda739dd /test/CodeGenCXX/debug-info-ms-abi.cpp
parent638e14bd75e1f65971564c9e0943ca05237943ed (diff)
[DebugInfo] Enable generation of unique identifiers for externally visible MS ABI types
We implemented the mangling for this a long time ago. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/debug-info-ms-abi.cpp')
-rw-r--r--test/CodeGenCXX/debug-info-ms-abi.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-ms-abi.cpp b/test/CodeGenCXX/debug-info-ms-abi.cpp
new file mode 100644
index 0000000000..78979952b4
--- /dev/null
+++ b/test/CodeGenCXX/debug-info-ms-abi.cpp
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 %s -triple=i686-pc-windows-msvc -debug-info-kind=limited -emit-llvm -o - | FileCheck %s
+
+// Tests that certain miscellaneous features work in the MS ABI.
+
+struct Foo {
+ struct Nested {};
+};
+Foo f;
+Foo::Nested n;
+// CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Foo",
+// CHECK-SAME: identifier: ".?AUFoo@@"
+// CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Nested",
+// CHECK-SAME: identifier: ".?AUNested@Foo@@"