summaryrefslogtreecommitdiffstats
path: root/clang/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
commit45fe376dbd1f195dc81b770b54b124bddbba9c88 (patch)
tree3a179ea17cd53c69cb8b65a2151b4679cd0f19d7 /clang/test/CodeGenCXX/debug-info-ms-abi.cpp
parent87590fae5532736d98e16ea67a7e643f3faaca7b (diff)
downloadbcm5719-llvm-45fe376dbd1f195dc81b770b54b124bddbba9c88.tar.gz
bcm5719-llvm-45fe376dbd1f195dc81b770b54b124bddbba9c88.zip
[DebugInfo] Enable generation of unique identifiers for externally visible MS ABI types
We implemented the mangling for this a long time ago. llvm-svn: 272862
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-ms-abi.cpp')
-rw-r--r--clang/test/CodeGenCXX/debug-info-ms-abi.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-ms-abi.cpp b/clang/test/CodeGenCXX/debug-info-ms-abi.cpp
new file mode 100644
index 00000000000..78979952b44
--- /dev/null
+++ b/clang/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@@"
OpenPOWER on IntegriCloud