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
* doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr46364.C
blob
40fd2f0760f20369c47654987a90897d5abd1529
1
// { dg-do compile }
2
#include <string>
3
4
void a()
5
#if __cplusplus <= 201402L
6
throw (int) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
7
#endif
8
;
9
void b(std::string const &);
10
11
void c(std::string *e)
12
{
13
b("");
14
15
try {
16
a();
17
} catch (...) {
18
*e = "";
19
}
20
}
21
22
void d() {
23
c(0);
24
}