summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/debug-info-ms-abi.cpp
blob: 78979952b44468dcab12ae08496ece85eb5992ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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