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
tree: Don't reuse types if TYPE_USER_ALIGN differ [PR94775]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
pr83045.C
blob
3709d363f1b9aec35ab866cce5eff8187b24cd9e
1
// PR c++/83045
2
// { dg-do compile }
3
// { dg-options "-Wreturn-type -O2" }
4
5
void foo (void);
6
7
int
8
bar (int a)
9
{
10
if (a != 0)
11
foo ();
12
} /* { dg-warning "no return statement in function returning non-void" } */
13
14
int
15
baz (int a)
16
{
17
if (a != 0)
18
__builtin_abort ();
19
} /* { dg-warning "control reaches end of non-void function" } */