1 // RUN: %clang_cc1 %s -triple=i686-pc-windows-msvc -debug-info-kind=limited -emit-llvm -o - | FileCheck %s 2 3 // Tests that certain miscellaneous features work in the MS ABI. 4 5 struct Foo { 6 virtual void f(); 7 virtual void g(); 8 virtual void h(); 9 struct Nested {}; 10 }; 11 Foo f; 12 Foo::Nested n; 13 // CHECK: ![[Foo:[^ ]*]] = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Foo", 14 // CHECK-SAME: identifier: ".?AUFoo@@" 15 // CHECK: !DISubprogram(name: "f", {{.*}} containingType: ![[Foo]], virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, {{.*}}) 16 // CHECK: !DISubprogram(name: "g", {{.*}} containingType: ![[Foo]], virtuality: DW_VIRTUALITY_virtual, virtualIndex: 1, {{.*}}) 17 // CHECK: !DISubprogram(name: "h", {{.*}} containingType: ![[Foo]], virtuality: DW_VIRTUALITY_virtual, virtualIndex: 2, {{.*}}) 18 // CHECK: distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Nested", 19 // CHECK-SAME: identifier: ".?AUNested@Foo@@" 20