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
PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
missing-return.C
blob
5f8e2ccb100259394611bc8f10d1435e118d66ea
1
/* { dg-do compile } */
2
/* { dg-options "-Wreturn-type -fdump-tree-optimized -O" } */
3
4
int foo(int a)
5
{
6
} /* { dg-warning "no return statement" } */
7
8
/* { dg-final { scan-tree-dump "__builtin_unreachable" "optimized" } } */