From 9b502e512c44365c8df5dce1c032f00688ac2fd7 Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Thu, 25 Oct 2012 10:18:50 +0000 Subject: Initialize debug info for special cases of functions that lack declarations and are generated by Clang (global initializers/destructors, thunks) . Fixes PR13942. llvm-svn: 166676 --- clang/test/CodeGenCXX/debug-info-thunk.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 clang/test/CodeGenCXX/debug-info-thunk.cpp (limited to 'clang/test/CodeGenCXX/debug-info-thunk.cpp') diff --git a/clang/test/CodeGenCXX/debug-info-thunk.cpp b/clang/test/CodeGenCXX/debug-info-thunk.cpp new file mode 100644 index 00000000000..58dd02885ea --- /dev/null +++ b/clang/test/CodeGenCXX/debug-info-thunk.cpp @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 %s -g -S -emit-llvm -o - | FileCheck %s + +struct A { + virtual void f(); +}; + +struct B { + virtual void f(); +}; + +struct C : A, B { + virtual void f(); +}; + +void C::f() { } + +// CHECK: [ DW_TAG_subprogram ] [line 15] [def] [_ZThn8_N1C1fEv] -- cgit v1.2.3