[llvm-commits] [debuginfo-tests] r125144 - /debuginfo-tests/trunk/aggregate-indirect-arg.cpp

Devang Patel dpatel at apple.com
Tue Feb 8 16:37:52 PST 2011


Author: dpatel
Date: Tue Feb  8 18:37:52 2011
New Revision: 125144

URL: http://llvm.org/viewvc/llvm-project?rev=125144&view=rev
Log:
Test case for r125142.

Added:
    debuginfo-tests/trunk/aggregate-indirect-arg.cpp

Added: debuginfo-tests/trunk/aggregate-indirect-arg.cpp
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/aggregate-indirect-arg.cpp?rev=125144&view=auto
==============================================================================
--- debuginfo-tests/trunk/aggregate-indirect-arg.cpp (added)
+++ debuginfo-tests/trunk/aggregate-indirect-arg.cpp Tue Feb  8 18:37:52 2011
@@ -0,0 +1,32 @@
+// RUN: %clangxx -O0 -g %s -c -o %t.o
+// RUN: %clangxx %t.o -o %t.out
+// RUN: %test_debuginfo %s %t.out 
+// Radar 8945514
+// DEBUGGER: break 22
+// DEBUGGER: r
+// DEBUGGER: p v
+// CHECK: $1 = (SVal &)
+// CHECK:  Data = 0x0, 
+// CHECK:  Kind = 2142
+
+class SVal {
+public:
+  ~SVal() {}
+  const void* Data;
+  unsigned Kind;
+};
+
+void bar(SVal &v) {}
+class A {
+public:
+  void foo(SVal v) { bar(v); }
+};
+
+int main() {
+  SVal v;
+  v.Data = 0;
+  v.Kind = 2142;
+  A a;
+  a.foo(v);
+  return 0;
+}





More information about the llvm-commits mailing list