repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
initlist-throw1.C
blob
264c6c7a7a0100ca3d8c46f0c140c4b9107e74cf
1
// PR c++/85363
2
// { dg-do run { target c++11 } }
3
4
int
5
init (int f)
6
{
7
throw f;
8
}
9
10
struct X {
11
X (int f) : n {init (f)} {}
12
int n;
13
};
14
15
struct P {
16
X x{20};
17
};
18
19
int
20
main ()
21
{
22
try {
23
P p {};
24
}
25
catch (int n) {
26
return 0;
27
}
28
return 1;
29
}