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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/5050
2
//  Origin: georg.wild@gmx.de
3
//  Reduced by: tbagot@bluearc.com and Nathanael C. Nerode 
4
// Test for that excessive template recursion does not occur
5
// because of optimization.
6
// { dg-options "-ftemplate-depth-1 -O" }
7
 
8
 struct ostream  {
9
    template ostream& foo( const T & )
10
     { return *this;  }
11
  };
12
 
13
  void foo()  {
14
    ostream os;
15
    (os.foo(1)).foo(2);
16
  }

powered by: WebSVN 2.1.0

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