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 | |
9 | class SVal { |
10 | public: |
11 | ~SVal() {} |
12 | const void* Data; |
13 | unsigned Kind; |
14 | }; |
15 | |
16 | void bar(SVal &v) {} |
17 | class A { |
18 | public: |
19 | void foo(SVal v) { bar(v); } // DexLabel('foo') |
20 | }; |
21 | |
22 | int 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 | /* |
32 | DexExpectProgramState({ |
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 | |