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
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
noreturn-7.C
blob
a869b7016fe84f1beb11ce4af40eec746427f44e
1
// PR c++/30988
2
// { dg-do compile }
3
// { dg-options "-O2 -Wall" }
4
5
void f (const char *) __attribute__ ((noreturn));
6
void f (int);
7
void f (double) __attribute__ ((noreturn));
8
9
template <typename T> struct A
10
{
11
int g ()
12
{
13
f ((T) 0);
14
} // { dg-warning "no return statement in function returning non-void" }
15
};