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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [inline.C] - Diff between revs 149 and 154

Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
// { dg-do run  }
// { dg-do run  }
// PRMS Id: 4341
// PRMS Id: 4341
// Bug: Instantiating a template in the middle of processing the functions
// Bug: Instantiating a template in the middle of processing the functions
// from another template screws up lineno/input_filename.
// from another template screws up lineno/input_filename.
#pragma implementation "C.h"
#pragma implementation "C.h"
#line 1 "A.h"
#line 1 "A.h"
#pragma interface
#pragma interface
template  class A {};
template  class A {};
#line 1 "C.h"
#line 1 "C.h"
#pragma interface
#pragma interface
template  class C
template  class C
{
{
public:
public:
  C() { A *ap; }
  C() { A *ap; }
  ~C() { }
  ~C() { }
};
};
#line 18 "inline.C"
#line 18 "inline.C"
int main()
int main()
{
{
  C c;
  C c;
}
}
 
 

powered by: WebSVN 2.1.0

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