Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/inconsistent-deduction-1.C

raw
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 }