blob: fb647b03771ffad5611d4aa88f3d6390fefec811 [file] [log] [blame]
#include <cstdio>
#include <cstdlib>
#include <math.h>
class f {
public:
f(float a) { x = a; }
bool is_finite () const {
return isfinite (x);
}
protected:
float x;
};
int main(int argc,char **argv)
{
f m((float) argc);
if (!m.is_finite ())
abort ();
return 0;
}