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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [init/] [goto1.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
// PR c++/14724
2
// { dg-do run }
3
 
4
int j;
5
 
6
template 
7
struct C {
8
  C() { ++j; }
9
  ~C() { --j; }
10
};
11
 
12
int main(int, char **) {
13
  {
14
    int i = 0;
15
 again:
16
    C v;
17
    if (++i < 10)
18
      goto again;
19
  }
20
 
21
  return j;
22
}
23
 

powered by: WebSVN 2.1.0

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