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
Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
constexpr-return2.C
blob
d330ccfed3e66ada57a25ad512ca53fc97a85e0e
1
// { dg-do compile { target c++14 } }
2
// { dg-additional-options "-Wno-return-type" }
3
4
constexpr int f (int i)
5
{
6
}
7
8
constexpr int i = f(42); // { dg-error "flows off the end" }