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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [pr42871.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
struct C
2
{
3
  ~C ();
4
  int c3;
5
};
6
 
7
C *b2;
8
 
9
static void
10
b1 (const C &x, unsigned b3, unsigned b4)
11
{
12
  unsigned i = 0;
13
  for (; i < b3; i++)
14
    if (i < b4)
15
      {
16
        b2[0].c3 = x.c3;
17
        return;
18
      }
19
}
20
 
21
int a ();
22
 
23
void
24
bar (unsigned b3, unsigned b4)
25
{
26
  C c[100];
27
  for (int i = 0; i < 100; i++)
28
    {
29
      c[i].c3 = i;
30
      for (int j = 0; j < b3; j++)
31
        if (j < b4)
32
          {
33
            b2[0].c3 = 0;
34
            break;
35
          }
36
      b1 (c[i], b3, b4);
37
      a ();
38
    }
39
}
40
 

powered by: WebSVN 2.1.0

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