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 lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wterminate1.C
blob
affb48d3e8ac31cea1ad15189fc62dbd2d7c5046
1
// In C++98 mode this gets a -Wc++11-compat warning, in C++11 mode a
2
// -Wterminate warning.
3
4
// { dg-options "-Wall" }
5
6
struct A
7
{
8
~A()
9
{
10
throw 1; // { dg-warning "terminate" }
11
}
12
};
13
14
int main()
15
{
16
try { A a; }
17
catch (...) {}
18
}
19
20