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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.dg/] [template/] [recurse1.C] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
// 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.