OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [overload/] [template5.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
 
3
template
4
int low(T a, T b, T c) { return a + b + c; } // { dg-message "template" }
5
 
6
template
7
int high(T a, T b, T c) { return a + b + c; } // { dg-message "template" }
8
 
9
int 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.