22842ff63e
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.
11 lines
116 B
C++
11 lines
116 B
C++
#include "pr10728-x.h"
|
|
struct Y{};
|
|
|
|
X y()
|
|
{
|
|
X xx;
|
|
static Y yy;
|
|
xx.y1 = &yy;
|
|
xx.y2 = xx.y1+1;
|
|
return xx;
|
|
}
|