| 1 |
// PR c++/116681 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
// { dg-additional-options "-ftime-report" } |
| 4 |
// { dg-allow-blank-lines-in-output 1 } |
| 5 |
// { dg-prune-output "Time variable" } |
| 6 |
// { dg-prune-output "k" } |
| 7 |
// { dg-prune-output "\[0-9\]+%" } |
| 8 |
|
| 9 |
template < int> using __conditional_t = int; |
| 10 |
template < typename _Iter > |
| 11 |
concept random_access_iterator = requires { new _Iter; }; |
| 12 |
template < typename _Iterator > struct reverse_iterator { |
| 13 |
using iterator_concept = __conditional_t< random_access_iterator< _Iterator >>; |
| 14 |
}; |
| 15 |
void RemoveBottom() |
| 16 |
{ |
| 17 |
int iter; |
| 18 |
for (reverse_iterator< int > iter;;) |
| 19 |
; |
| 20 |
} |