blob: 570708d4fa918a3502df6f5c14d7ffce29e32bf8 (
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
25
26
27
28
|
// Purpose:
// Ensure that debug information for a local variable does not hide
// a global definition that has the same name.
// REQUIRES: lldb
// UNSUPPORTED: system-windows
// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t
// RUN: %dexter --fail-lt 1.0 -w \
// RUN: --binary %t %dexter_lldb_args -v -- %s
const int d = 100;
extern int foo();
int main() {
const int d = 4;
const float e = 4; // DexLabel("main")
const char *f = "Woopy";
return d + foo();
}
int foo() {
return d; // DexLabel("foo")
}
// DexExpectWatchValue('d', '4', on_line=ref('main'))
// DexExpectWatchValue('d', '100', on_line=ref('foo'))
|