[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Sema / unroll-template-value-crash.cpp
blobd8953c4845c265fae4aeda2bdb0f5c8d77f43ece
1 // RUN: %clang_cc1 -x c++ -verify %s
2 // expected-no-diagnostics
4 template <int Unroll> void foo() {
5 #pragma unroll Unroll
6 for (int i = 0; i < Unroll; ++i);
8 #pragma GCC unroll Unroll
9 for (int i = 0; i < Unroll; ++i);