1// { dg-do compile } 2 3template<typename T> 4int low(T a, T b, T c) { return a + b + c; } // { dg-message "template" } 5 6template<typename T> 7int high(T a, T b, T c) { return a + b + c; } // { dg-message "template" } 8 9int test (void) 10{ 11 low (5, 6); // { dg-error "no matching function" } 12 // { dg-message "(candidate|3 arguments, 2 provided)" "" { target *-*-* } 11 } 13 high (5, 6, 7, 8); // { dg-error "no matching function" } 14 // { dg-message "(candidate|3 arguments, 4 provided)" "" { target *-*-* } 13 } 15} 16