aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp1z/launder6.cc
blob: 1822891a0a07697f8313e71a3796ac5f625ceb76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "launder6.h"

void *
operator new (decltype (sizeof (0)), void *p)
{
  return p;
}

int y = 666;

void f(B& b)
{
  new (&b.a) A{y};
}