Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / array-conv12.C
blobb0dd81984bbcf1246da035853a418b210d6526d4
1 // PR c++/91364 - Implement P0388R4: Permit conversions to arrays of unknown bound.
2 // { dg-do compile { target c++20 } }
3 // { dg-options "-Wpedantic" }
5 int arr[1] = { 42 };
6 int(&r)[]{arr};
7 int(&r2)[] = {arr};
8 int(&&r3)[]{};
9 int(&&r4)[]{42};
10 int(&&r5)[] = {};
11 int(&&r6)[] = {42};
12 int(&r7)[](arr); // { dg-warning "conversions to arrays of unknown bound are only available" "" { target c++17_down } }