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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.mike/] [p7651.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 305 jeremybenn
// { dg-do run  }
2
// prms-id: 7651
3
 
4
int fail = 0;
5
 
6
class Foo {
7
public:
8
  Foo(double i) : data(i) { if (data != 1.0) fail = 1; }
9
  ~Foo() { if (data != 1.0) fail = 1; }
10
private:
11
  volatile double data;
12
};
13
 
14
int DingDong(double A) {
15
  volatile Foo a(A);
16
 
17
  if ( A != 0.0 ) {
18
    return 1;
19
  }
20
  return 0;
21
}
22
 
23
 
24
int main() {
25
  DingDong(1.0);
26
}

powered by: WebSVN 2.1.0

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