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:
Sylvain Pion 2008-01-02 15:43:01 +00:00
parent 50feab3cd5
commit e8f7d3a4aa
1 changed files with 6 additions and 5 deletions

View File

@ -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;
}