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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [context.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { dg-do assemble  }
2
// PRMS Id: 3988
3
// Bug: DECL_CONTEXT of A::B gets clobbered in pushdecl when defining A::foo().
4
 
5
#pragma implementation "context.h"
6
#line 1 "context.h"
7
#pragma interface
8
 
9
template 
10
struct A {
11
  inline void foo () { }
12
  class B { };
13
};
14
 
15
struct C : public A {
16
  void bar (C::B&);
17
};
18
#line 2 "context.C"
19
 
20
void C::bar (C::B& b) { }

powered by: WebSVN 2.1.0

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