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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [for1.C] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do assemble  }
2
 
3
int i;
4
int j;
5
 
6
struct S {
7
  int operator()(int)
8
    {
9
      i = 1;
10
      return i;
11
    }
12
 
13
  typedef int I;
14
 
15
  void f() {
16
    for (S I; false; )
17
      ;
18
    int k = I(3);
19
  }
20
};
21
 
22
typedef int J;
23
 
24
struct T {
25
  int operator()(int)
26
    {
27
      j = 1;
28
      return j;
29
    }
30
 
31
  void f() {
32
    for (T J; false; )
33
      ;
34
    int k = J(3);
35
  }
36
};
37
 
38
int main()
39
{
40
  S s;
41
  s.f();
42
  return 2 * i + j;
43
}

powered by: WebSVN 2.1.0

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