Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/overload/template5.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } template<typename T> int low(T a, T b, T c) { return a + b + c; } // { dg-message "template" } template<typename T> int high(T a, T b, T c) { return a + b + c; } // { dg-message "template" } void test (void) { low (5, 6); // { dg-error "no matching function" } // { dg-message "(candidate|3 arguments, 2 provided)" "" { target *-*-* } .-1 } high (5, 6, 7, 8); // { dg-error "no matching function" } // { dg-message "(candidate|3 arguments, 4 provided)" "" { target *-*-* } .-1 } }