1 // PR c++/91364 - Implement P0388R4: Permit conversions to arrays of unknown bound.
2 // { dg-do run { target c++20 } }
4 // Ranking of reference initialization conversions
6 int f(int(&)[]) { return 1; } // (1)
7 int f(int(&)[1]) { return 2; } // (2)
9 int h(int(*)[]) { return 1; } // (a)
10 int h(int(*)[1]) { return 2; } // (b)
13 // (2) and (b) should clearly be better than (1) and (a), respectively,
14 // as the former overloads are more restricted.
15 // (a) should be worse than (b), which is implied by (a) necessitating
16 // a qualification conversion in that case.