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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do run }
2
 
3
// Copyright (C) 2002 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 13 Sep 2002 
5
 
6
template  int Foo (T const *)
7
{
8
  return 1;
9
}
10
template  int Foo (T const &)
11
{
12
  return 2;
13
}
14
template  int Foo (T const (&ref)[I])
15
{
16
  return 0;
17
}
18
 
19
int main ()
20
{
21
  static int array[4] = {};
22
 
23
  return Foo (array);
24
}
25
 

powered by: WebSVN 2.1.0

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