blob: ba910644de4e9484fceca1495422f71107a0ea73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Purpose:
// Ensure that the debug information for a global variable includes
// namespace information.
// REQUIRES: lldb
// UNSUPPORTED: system-windows
// RUN: %clang++ -g -O0 %s -o %t
// RUN: %dexter --fail-lt 1.0 -w \
// RUN: --binary %t %dexter_lldb_args -v -- %s
#include <stdio.h>
namespace monkey {
const int ape = 32;
}
int main() {
printf("hello %d\n", monkey::ape); // DexLabel('main')
return 0;
}
// DexExpectWatchValue('monkey::ape', 32, on_line=ref('main'))
|