summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/array-conv16.C
blob: bfb39d1c12c979d44e094e3d6c50e06d7a3eaf73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// PR c++/91364 - P0388R4: Permit conversions to arrays of unknown bound.
// { dg-do compile { target c++2a } }

using P = int *(*)[3];
using S = const int *const (*)[];
using Q = const int *const (*)[3];
using Qi = const int *[3];
using Q2 = Qi const *;

void
f (P p, S s, Q q, Q2 q2)
{
  s = p;
  s = q;
  s = q2;
}