mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 20:15:49 -04:00

Dexter (Debug Experience Tester) is a test-driver for our debug info integration tests, reading a set of debug experience expectations and comparing them with the actual behaviour of a program under a debugger. More about Dexter can be found in the RFC: http://lists.llvm.org/pipermail/llvm-dev/2019-October/135773.html and the phab review in D68708. Not all the debuginfo tests have been transformed into Dexter tests, and we look forwards to doing that incrementally. This commit mostly aims to flush out buildbots that are running debuginfo-tests but don't have python 3 installed, possibly green-dragon and some windows bots.
22 lines
485 B
C++
22 lines
485 B
C++
// RUN: %clangxx %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o
|
|
// RUN: %test_debuginfo %s %t.o
|
|
// Radar 9440721
|
|
// If debug info for my_number() is emitted outside function foo's scope
|
|
// then a debugger may not be able to handle it. At least one version of
|
|
// gdb crashes in such cases.
|
|
|
|
// DEBUGGER: ptype foo
|
|
// CHECK: int (void)
|
|
|
|
int foo() {
|
|
struct Local {
|
|
static int my_number() {
|
|
return 42;
|
|
}
|
|
};
|
|
|
|
int i = 0;
|
|
i = Local::my_number();
|
|
return i + 1;
|
|
}
|