diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:08 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:18:08 +0000 |
| commit | bab175ec4b075c8076ba14c762900392533f6ee4 (patch) | |
| tree | 01f4f29419a2cb10abe13c1e63cd2a66068b0137 /test/CodeGenCXX/debug-info-thunk-msabi.cpp | |
| parent | 8b7a8012d223fac5d17d16a66bb39168a9a1dfc0 (diff) | |
Notes
Diffstat (limited to 'test/CodeGenCXX/debug-info-thunk-msabi.cpp')
| -rw-r--r-- | test/CodeGenCXX/debug-info-thunk-msabi.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGenCXX/debug-info-thunk-msabi.cpp b/test/CodeGenCXX/debug-info-thunk-msabi.cpp new file mode 100644 index 000000000000..5c705ac0ac13 --- /dev/null +++ b/test/CodeGenCXX/debug-info-thunk-msabi.cpp @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 %s -triple i386-pc-windows-msvc19.0.0 -emit-llvm \ +// RUN: -debug-info-kind=line-tables-only -fms-extensions -o - | FileCheck %s +class __declspec(dllexport) A { + A(int * = new int) {} +}; +// CHECK: define {{.*}}void @"\01??_FA@@AAEXXZ" +// CHECK-SAME: !dbg ![[SP:[0-9]+]] +// CHECK-NOT: {{ret }} +// CHECK: call x86_thiscallcc %class.A* @"\01??0A@@AAE@PAH@Z" +// CHECK-SAME: !dbg ![[DBG:[0-9]+]] +// CHECK: ret void, !dbg +// +// CHECK: ![[SP]] = distinct !DISubprogram( +// CHECK-SAME: line: 4 +// CHECK-SAME: isDefinition: true +// CHECK-SAME: DIFlagArtificial +// CHECK-SAME: ){{$}} +// +// CHECK: ![[DBG]] = !DILocation(line: 0 |
