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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [debug/] [pr46583.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR debug/46583
2
// { dg-do compile }
3
// { dg-options "-O -fno-inline -fipa-cp -fipa-cp-clone -fcompare-debug" }
4
 
5
template < typename = unsigned long >struct A
6
{
7
  unsigned long elems[3];
8
  unsigned long *begin ()
9
  {
10
    return 0;
11
  }
12
};
13
 
14
void
15
bar (unsigned long *a1, unsigned long, unsigned long *a3, unsigned const &)
16
{
17
  *a3 = *a1;
18
}
19
 
20
A < >operatorM (A < >a1, unsigned long a2)
21
{
22
  typedef A < >G;
23
  G a3;
24
  bar (a1.begin (), a2, a3.begin (), 0);
25
  return a3;
26
}
27
 
28
struct B
29
{
30
  B (A < >m):n (operatorM (m, 1))
31
  {
32
  }
33
  A < >n;
34
};
35
 
36
void
37
foo ()
38
{
39
  B (A < >());
40
}

powered by: WebSVN 2.1.0

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