repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
inconsistent-deduction-1.C
blob
2b4e77a17ff860b9ab7cc88089c0375dc81f0157
1
// { dg-do compile { target c++14 } }
2
3
void foo();
4
5
auto bar(bool b)
6
{
7
if (b)
8
return 0;
9
return foo(); // { dg-error "13:inconsistent deduction for auto return type: .int. and then .void." }
10
}