diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2019-10-31 16:51:53 +0000 |
---|---|---|
committer | Jeremy Morse <jeremy.morse@sony.com> | 2019-10-31 16:51:53 +0000 |
commit | 984fad243d179564df31c5f9531a52442e24581a (patch) | |
tree | aba85a27f1596d456079f6f5eb69e09408730b49 /debuginfo-tests/llgdb-tests/forward-declare-class.cpp | |
parent | 34f3c0fc44a5fd8a0f9186002749336e398837cf (diff) | |
download | llvm-984fad243d179564df31c5f9531a52442e24581a.tar.gz |
Reapply "Import Dexter to debuginfo-tests""
This reverts commit cb935f345683194e42e6e883d79c5a16479acd74.
Discussion in D68708 advises that green dragon is being briskly
refurbished, and it's good to have this patch up testing it.
Diffstat (limited to 'debuginfo-tests/llgdb-tests/forward-declare-class.cpp')
-rw-r--r-- | debuginfo-tests/llgdb-tests/forward-declare-class.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debuginfo-tests/llgdb-tests/forward-declare-class.cpp b/debuginfo-tests/llgdb-tests/forward-declare-class.cpp new file mode 100644 index 000000000000..132420009bd1 --- /dev/null +++ b/debuginfo-tests/llgdb-tests/forward-declare-class.cpp @@ -0,0 +1,27 @@ +// RUN: %clangxx %target_itanium_abi_host_triple -O0 -g %s -c -o %t.o +// RUN: %test_debuginfo %s %t.o +// Radar 9168773 + +// DEBUGGER: ptype A +// Work around a gdb bug where it believes that a class is a +// struct if there aren't any methods - even though it's tagged +// as a class. +// CHECK: type = {{struct|class}} A { +// CHECK-NEXT: {{(public:){0,1}}} +// CHECK-NEXT: int MyData; +// CHECK-NEXT: } +class A; +class B { +public: + void foo(const A *p); +}; + +B iEntry; + +class A { +public: + int MyData; +}; + +A irp; + |