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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.pt/] [spec40.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do run  }
2
// Copyright (C) 2000 Free Software Foundation, Inc.
3
// Contributed by Nathan Sidwell 12 Feb 2001 
4
 
5
// More from bug 1617. We didn't resolve partial ordering properly. The
6
// std is rather vague about it anyway, DR 214 talks about this.
7
 
8
template  int Foo (T const *) {return 1;}
9
template  int Foo (char const (&)[I]) {return 2;}
10
 
11
int main ()
12
{
13
  return Foo ("a") != 2;
14
}

powered by: WebSVN 2.1.0

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