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 c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
opt
/
pr57411.C
blob
9c99ee0619cd75568cc09a4640de30e98d8b9367
1
// { dg-do compile }
2
// { dg-options "-O -fno-tree-dce -ftree-vectorize" }
3
4
static inline void
5
iota (int *__first, int *__last, int __value)
6
{
7
for (; __first != __last; ++__first)
8
{
9
*__first = __value;
10
}
11
}
12
13
void assert_fail ();
14
15
int A[] = { 0, 0, 0 };
16
17
void
18
test01 (int equal)
19
{
20
iota (A, A + 3, 1);
21
if (equal)
22
assert_fail ();
23
}