1// REQUIRES: lldb
2// UNSUPPORTED: system-windows
3//
4// RUN: %clang -std=gnu++11 -O0 -g -lstdc++ %s -o %t
5// RUN: %dexter --fail-lt 1.0 -w \
6// RUN: --binary %t --debugger 'lldb' -- %s
7// Radar 8945514
8
9class SVal {
10public:
11 ~SVal() {}
12 const void* Data;
13 unsigned Kind;
14};
15
16void bar(SVal &v) {}
17class A {
18public:
19 void foo(SVal v) { bar(v); } // DexLabel('foo')
20};
21
22int main() {
23 SVal v;
24 v.Data = 0;
25 v.Kind = 2142;
26 A a;
27 a.foo(v);
28 return 0;
29}
30
31/*
32DexExpectProgramState({
33 'frames': [
34 {
35 'location': { 'lineno': ref('foo') },
36 'watches': {
37 'v.Data == 0': 'true',
38 'v.Kind': '2142'
39 }
40 }
41 ]
42})
43*/
44
45

source code of cross-project-tests/debuginfo-tests/dexter-tests/aggregate-indirect-arg.cpp