• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:
~SVal()14   ~SVal() {}
15   const void* Data;
16   unsigned Kind;
17 };
18 
bar(SVal & v)19 void bar(SVal &v) {}
20 class A {
21 public:
foo(SVal v)22   void foo(SVal v) { bar(v); }
23 };
24 
main()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