old-cross-binutils/gdb/testsuite/gdb.cp/pr10728-y.cc

12 lines
116 B
C++
Raw Normal View History

#include "pr10728-x.h"
struct Y{};
X y()
{
X xx;
static Y yy;
xx.y1 = &yy;
xx.y2 = xx.y1+1;
return xx;
}