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
/
noreturn-6.C
blob
fdbc42516a13e63f10aa0ecb12bee0a3fce1005a
1
// PR c++/30988
2
// { dg-do compile }
3
// { dg-options "-O2 -Wall" }
4
5
void f (const char *);
6
7
template <typename T> struct A
8
{
9
int g ()
10
{
11
f (__FUNCTION__);
12
} // { dg-warning "no return statement in function returning non-void" }
13
};