OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
noreturn-7.C
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
};