diff options
author | Reid Kleckner <rnk@google.com> | 2016-06-16 01:21:28 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-06-16 01:21:28 +0000 |
commit | 45fe376dbd1f195dc81b770b54b124bddbba9c88 (patch) | |
tree | 3a179ea17cd53c69cb8b65a2151b4679cd0f19d7 /clang/test/CodeGenCXX/debug-info-ms-abi.cpp | |
parent | 87590fae5532736d98e16ea67a7e643f3faaca7b (diff) | |
download | bcm5719-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.cpp | 13 |
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@@" |