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
builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
pr29521.c
blob
b6fb535fab7ed1ea8431fbd3a1eca1fa56440199
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
}