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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [debug/] [debug2.C] - Blame information for rev 856

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Verify that sched re-inserts needed scopes properly.  */
2
/* { dg-do compile } */
3
/* { dg-options "-mcpu=ev5" { target alpha*-*-* } } */
4
 
5
template 
6
inline void foo()
7
{
8
  void (T::*x)() __attribute__ ((__unused__)) = &T::bar;
9
}
10
 
11
template 
12
struct D
13
{
14
  void bar() {
15
  }
16
  T i;
17
};
18
 
19
template 
20
struct E
21
{
22
  void bar() {
23
    foo  > ();
24
    *i-- = *i;
25
  }
26
  T i;
27
};
28
 
29
struct A {};
30
template struct B { typedef typename T::t t; };
31
template struct B { typedef T& t; };
32
template
33
struct C
34
{
35
  T b;
36
  explicit C (const T& i) : b (i) { }
37
  typename B::t operator* () const { return *b; }
38
  C operator-- (int) { return C (b--); }
39
};
40
 
41
template void foo  > > ();
42
template void foo  > > ();

powered by: WebSVN 2.1.0

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