Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/array-conv14.C

raw
1 // PR c++/91364 - Implement P0388R4: Permit conversions to arrays of unknown bound.
2 // { dg-do compile { target c++20 } }
3
4 void f(const int(*)[]);
5 void fb(const int(*)[3]);
6 void f2(const int(&)[]);
7 void fb2(const int(&)[3]);
8
9 void
10 g ()
11 {
12 int arr[3];
13 f(&arr);
14 fb(&arr);
15 f2(arr);
16 fb2(arr);
17 }