aboutsummaryrefslogtreecommitdiff
blob: d8a932ab41ff0513a54e4db05edac01b0360e257 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "pr10728-x.h"
struct Y{};

X y()
{
  X xx;
  static Y yy;
  xx.y1 = &yy;
  xx.y2 = xx.y1+1;
  return xx;
}