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] - Rev 825
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/21089
// { dg-do run }
extern "C" void abort();
static const double a = 1.0;
struct S {
S();
};
static S s;
static const double b = a + 1.0;
S::S() {
if (b < 1.9 || b > 2.1)
abort ();
}
int main () {
}
Go to most recent revision | Compare with Previous | Blame | View Log