diff options
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/pr10728-x.cc | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/pr10728-x.h | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/pr10728-y.cc | 6 |
4 files changed, 12 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 25bbc6a..92a7eee 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,12 @@ 2014-04-24 David Blaikie <dblaikie@gmail.com> + * gdb.cp/pr10728-x.cc (main::x): Return by value instead of pointer to + coax Clang into emitting the definition of the type. + * gdb.cp/pr10728-x.h (y): Ditto. + * gdb.cp/pr10728-y.cc (y): Ditto. + +2014-04-24 David Blaikie <dblaikie@gmail.com> + * gdb.base/label.exp: XFAIL label related tests under Clang. * gdb.cp/cplabel.exp: Ditto. * gdb.linespec/ls-errs.exp: Refactor tests to execute directly and XFAIL diff --git a/gdb/testsuite/gdb.cp/pr10728-x.cc b/gdb/testsuite/gdb.cp/pr10728-x.cc index 7623c0b..d6b7666 100644 --- a/gdb/testsuite/gdb.cp/pr10728-x.cc +++ b/gdb/testsuite/gdb.cp/pr10728-x.cc @@ -2,6 +2,6 @@ int main() { - X* x = y(); + X x = y(); return 0; // marker 1 } diff --git a/gdb/testsuite/gdb.cp/pr10728-x.h b/gdb/testsuite/gdb.cp/pr10728-x.h index 63737d9..0ba58bb 100644 --- a/gdb/testsuite/gdb.cp/pr10728-x.h +++ b/gdb/testsuite/gdb.cp/pr10728-x.h @@ -5,5 +5,5 @@ struct X Y* y2; }; -X* y(); +X y(); diff --git a/gdb/testsuite/gdb.cp/pr10728-y.cc b/gdb/testsuite/gdb.cp/pr10728-y.cc index 84b222d..d8a932a 100644 --- a/gdb/testsuite/gdb.cp/pr10728-y.cc +++ b/gdb/testsuite/gdb.cp/pr10728-y.cc @@ -1,11 +1,11 @@ #include "pr10728-x.h" struct Y{}; -X* y() +X y() { - static X xx; + X xx; static Y yy; xx.y1 = &yy; xx.y2 = xx.y1+1; - return &xx; + return xx; } |