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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [template/] [friend18.C] - Blame information for rev 154

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do run }
2
 
3
// Copyright (C) 2003 Free Software Foundation, Inc.
4
// Contributed by Nathan Sidwell 26 Mar 2003 
5
 
6
// PR 10158. implicit inline template friends ICE'd
7
 
8
template  struct X
9
{
10
  template  friend int foo(X const &)
11
  {
12
    return N * 10000 + M;
13
  }
14
};
15
X<1234> bring;
16
 
17
int main() {
18
  return foo<5678> (bring) != 12345678;
19
}

powered by: WebSVN 2.1.0

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