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
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nsdmi-eh1.C
blob
9bc632c4bc7d89d00241a2f6b453c7c7189c6801
1
// Core issue 1351
2
// { dg-do run }
3
// { dg-require-effective-target c++11 }
4
5
bool fail;
6
struct A
7
{
8
int i = fail ? throw "noooooooo" : 42;
9
};
10
11
int main()
12
{
13
A a1;
14
if (a1.i != 42) return 1;
15
fail = true;
16
try { A a2; }
17
catch (...) { }
18
}