repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git]
/
clang
/
test
/
Sema
/
unroll-template-value-crash.cpp
blob
d8953c4845c265fae4aeda2bdb0f5c8d77f43ece
1
// RUN: %clang_cc1 -x c++ -verify %s
2
// expected-no-diagnostics
3
4
template
<
int
Unroll
>
void
foo
() {
5
#pragma unroll Unroll
6
for
(
int
i
=
0
;
i
<
Unroll
; ++
i
);
7
8
#pragma GCC unroll Unroll
9
for
(
int
i
=
0
;
i
<
Unroll
; ++
i
);
10
}