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
re PR c++/70808 (Spurious -Wzero-as-null-pointer-constant for nullptr_t)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wreturn-type-3.C
blob
590287ae431d532aaaaef1262c590ff4c12c1f92
1
// PR middle-end/19583
2
// { dg-options "-Wreturn-type -O" }
3
4
struct E{};
5
6
inline int bar()
7
#if __cplusplus <= 201402L
8
throw(E) // { dg-warning "deprecated" "" { target { c++11 && { ! c++17 } } } }
9
#endif
10
{
11
return 0;
12
}
13
14
void foo ()
15
{
16
bar();
17
}