repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
asan
/
pr85081.C
blob
d7dec3114506f9fded88d1ebeb28442a777ee58d
1
/* PR sanitizer/85081 */
2
/* { dg-do run } */
3
/* { dg-options "-fopenmp-simd" } */
4
/* { dg-require-effective-target fopenmp } */
5
6
inline const int& max(const int& a, const int& b)
7
{
8
return a < b ? b : a;
9
}
10
11
int main()
12
{
13
#pragma omp simd
14
for ( int i = 0; i < 20; ++i )
15
{
16
const int j = max(i, 1);
17
}
18
19
return 0;
20
}