mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 09:46:07 +00:00
11 lines
227 B
C++
11 lines
227 B
C++
// RUN: %clang_cc1 -x c++ -verify %s
|
|
// expected-no-diagnostics
|
|
|
|
template <int Unroll> void foo() {
|
|
#pragma unroll Unroll
|
|
for (int i = 0; i < Unroll; ++i);
|
|
|
|
#pragma GCC unroll Unroll
|
|
for (int i = 0; i < Unroll; ++i);
|
|
}
|