| 1 |
// PR c++/111529 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-additional-options -Wno-c++20-extensions } |
| 4 |
|
| 5 |
template <int> |
| 6 |
void f() { |
| 7 |
[]<int>() { |
| 8 |
#pragma GCC unroll 9 |
| 9 |
for (int i = 1; i; --i) { |
| 10 |
} |
| 11 |
}; |
| 12 |
} |
| 13 |
|
| 14 |
int main() { |
| 15 |
f<0>(); |
| 16 |
} |