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