2 // { dg-do compile { target c++23 } }
4 // uses of member only operators (subscript)
6 // execution paths for subscript with 1 argument and 0 and 2+ arguments are different
7 // therefore we should additionally test the 0 and 2 argument cases as well
10 void operator[](this S&) {}
11 void operator[](this S&, int) {}
12 void operator[](this S&, int, int) {}
13 template<typename... Args>
14 void operator[](this S&, Args... args) {}
26 template<typename = void>