]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/testsuite/gdb.cp/pr10728-y.cc
Return by value to coax Clang into emitting the full definition of a test type.
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.cp / pr10728-y.cc
CommitLineData
83b10087
CM
1#include "pr10728-x.h"
2struct Y{};
3
22842ff6 4X y()
83b10087 5{
22842ff6 6 X xx;
83b10087
CM
7 static Y yy;
8 xx.y1 = &yy;
9 xx.y2 = xx.y1+1;
22842ff6 10 return xx;
83b10087 11}