1 // RUN: %clangxx %s -O0 -g -fexceptions %extra-clang-opts -o %t 2 // RUN: %Test_jit_debuginfo %s %t 3 // XFAIL: host-bcc 4 // DEBUGGER: set breakpoint pending on 5 // DEBUGGER: break aggregate-indirect-arg.cpp:22 6 // DEBUGGER: r 7 // DEBUGGER: p v 8 // CHECK: $1 = (SVal &) 9 // CHECK: Data = 0x0, 10 // CHECK: Kind = 2142 11 12 class SVal { 13 public: 14 ~SVal() {} 15 const void* Data; 16 unsigned Kind; 17 }; 18 19 void bar(SVal &v) {} 20 class A { 21 public: 22 void foo(SVal v) { bar(v); } 23 }; 24 25 int main() { 26 SVal v; 27 v.Data = 0; 28 v.Kind = 2142; 29 A a; 30 a.foo(v); 31 return 0; 32 } 33