mirror of https://github.com/CGAL/cgal
Enhance test program to still fail with recent pgCC versions,
as the bug is still there, even if the test program now passes.
This commit is contained in:
parent
50feab3cd5
commit
e8f7d3a4aa
|
|
@ -28,14 +28,15 @@
|
|||
// ---------------------------------------------------------------------
|
||||
|
||||
//| This flag is set if the compiler bugs when handling denormal values at
|
||||
//| compile time. At least PGCC 5.1-3 has the bug.
|
||||
//| compile time. At least PGCC 7.1-2 has the bug.
|
||||
|
||||
#undef NDEBUG
|
||||
#include <cassert>
|
||||
|
||||
template < typename T >
|
||||
void use(const T&) {}
|
||||
|
||||
int main()
|
||||
{
|
||||
double d = 5e-324;
|
||||
use(d);
|
||||
assert(d != 0);
|
||||
assert(d/2 == 0);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue