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
Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
pr46663.c
blob
c2e56bb253a75aa97052c7dbd0500a44720ba30b
1
/* { dg-do compile } */
2
/* { dg-additional-options "-O -fexceptions" } */
3
/* { dg-require-effective-target exceptions } */
4
5
typedef
__attribute__
((
const
))
int
(*
bart
) (
void
);
6
7
int
foo
(
bart bar
,
int
m
)
8
{
9
int
i
,
j
=
0
;
10
for
(
i
=
0
;
i
<
m
;
i
++)
11
j
+=
bar
();
12
return
j
;
13
}
14