forward-declare-class.cpp 462 B

123456789101112131415161718192021222324252627282930
  1. // RUN: %clangxx %s -g -fexceptions %extra-clang-opts -o %t
  2. // RUN: %Test_jit_debuginfo %s %t
  3. // Radar 9168773
  4. // DEBUGGER: set breakpoint pending on
  5. // DEBUGGER: b forward-declare-class.cpp:28
  6. // DEBUGGER: r
  7. // DEBUGGER: ptype A
  8. // CHECK: type = class A {
  9. // CHECK-NEXT: public:
  10. // CHECK-NEXT: int MyData;
  11. // CHECK-NEXT: }
  12. class A;
  13. class B {
  14. public:
  15. void foo(const A *p);
  16. };
  17. B iEntry;
  18. class A {
  19. public:
  20. int MyData;
  21. };
  22. A irp;
  23. int main() {
  24. return 0;
  25. }