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
/
pr17624.C
blob
07fbf14da3619431dea54d1081322d527cf1ce34
1
// { dg-do compile }
2
// { dg-options "-O2" }
3
4
extern void foo (void);
5
int c;
6
void foo (int n)
7
{
8
int j = 0;
9
try
10
{
11
for(;;)
12
{
13
foo ();
14
if (j ++ == n)
15
break;
16
foo ();
17
}
18
}
19
catch (...)
20
{
21
c = j;
22
}
23
}