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
2007-06-11 Andreas Tobler <a.tobler@schweiz.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr29521.c
1
/* PR 29521 : warning for return with expression in function returning void */
2
/* { dg-do compile } */
3
/* { dg-options "" } */
4
5
void func (void) { }
6
7
void func2 (void)
8
{
9
return func ();
10
}
11
12
void func3 (void)
13
{
14
return 1; /* { dg-warning "'return' with a value" } */
15
}