aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp23/auto-fncast9.C
blob: 12a0dcece7597afe5ecb749b2ad4ebc0f29a7645 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// PR c++/103401
// { dg-do compile { target c++23 } }

void f1(decltype(new auto{0}));
void f2(decltype(new int{0}));

void
g ()
{
  int i;
  void f3(decltype(new auto{0}));
  void f4(decltype(new int{0}));
  f1 (&i);
  f2 (&i);
  f3 (&i);
  f4 (&i);
}