mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 09:38:57 +00:00
Return by value to coax Clang into emitting the full definition of a test type.
gdb/testsuite/ * gdb.cp/pr10728-x.cc: Return by value instead of pointer to coax Clang into emitting the definition of the type. * gdb.cp/pr10728-x.h: Ditto. * gdb.cp/pr10728-y.cc: Ditto.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
X* x = y();
|
||||
X x = y();
|
||||
return 0; // marker 1
|
||||
}
|
||||
|
||||
@@ -5,5 +5,5 @@ struct X
|
||||
Y* y2;
|
||||
};
|
||||
|
||||
X* y();
|
||||
X y();
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user