URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [init/] [float1.C] - Rev 316
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