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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [init/] [goto1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 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.