2020-10-28 22:21:40 +08:00
|
|
|
// Purpose:
|
|
|
|
// Ensure that the debug information for a global variable includes
|
|
|
|
// namespace information.
|
|
|
|
|
2020-10-29 01:33:29 +08:00
|
|
|
// REQUIRES: lldb
|
2020-10-28 22:21:40 +08:00
|
|
|
// UNSUPPORTED: system-windows
|
|
|
|
|
|
|
|
// RUN: %dexter --fail-lt 1.0 -w \
|
|
|
|
// RUN: --builder 'clang' --debugger 'lldb' \
|
|
|
|
// RUN: --cflags "-g -O0" -v -- %s
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
namespace monkey {
|
|
|
|
const int ape = 32;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
printf("hello %d\n", monkey::ape); // DexLabel('main')
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2021-05-21 15:56:14 +08:00
|
|
|
// DexExpectWatchValue('monkey::ape', 32, on_line=ref('main'))
|
2020-10-28 22:21:40 +08:00
|
|
|
|