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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.robertl/] [eb129.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do assemble  }
2
// Gives ICE on EGCS release branch as of 98/06/08 on i686-pc-linux-gnulibc1)
3
// From: Klaus-Georg Adams 
4
// Message-Id: <199806081358.PAA02505@achibm5.chemie.uni-karlsruhe.de>
5
#include 
6
#include 
7
#include 
8
#include 
9
using namespace std;
10
int main()
11
{
12
      list l;
13
      l.push_back(1);
14
      l.push_back(2);
15
 
16
      list::iterator it =
17
              find_if( l.begin(), l.end(),
18
                       // This is a typo, it should be bind2nd, but an
19
                       // ICE is not a very helpful diagnostic!
20
                       binder2nd( equal_to(), 2 ) ); // { dg-error "" }
21
      assert( *(it) == 2 );
22
}
23
 

powered by: WebSVN 2.1.0

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