teak-llvm/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/d.cpp
Tamas Berghammer e43482b626 Create test for llvm.org/pr25806
LLDB don't detect the loading of a shared object file linked against the
main executable before the static initializers are executed for the
given module. Because of this it is not possible to get breakpoint hits
in these static initializers and to display proper debug info in case of
a crash in these codes.

llvm-svn: 255342
2015-12-11 16:24:14 +00:00

22 lines
486 B
C++

//===-- c.c -----------------------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
int d_init()
{
return 123;
}
int d_global = d_init();
int
d_function ()
{ // Find this line number within d_dunction().
return 700;
}