45 lines · cpp
1// REQUIRES: lldb2// UNSUPPORTED: system-windows3//4// RUN: %clang++ -std=gnu++11 -O0 -g %s -o %t5// RUN: %dexter --fail-lt 1.0 -w \6// RUN: --binary %t %dexter_lldb_args -- %s7// Radar 89455148 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