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/] [float1.C] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
// PR c++/21089
2
// { dg-do run }
3
 
4
extern "C" void abort();
5
 
6
static const double a = 1.0;
7
struct S {
8
  S();
9
};
10
static S s;
11
static const double b = a + 1.0;
12
 
13
S::S() {
14
  if (b < 1.9 || b > 2.1)
15
    abort ();
16
}
17
 
18
int main () {
19
}

powered by: WebSVN 2.1.0

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