Changeset 376


Ignore:
Timestamp:
Jul 15, 2003, 1:34:02 PM (22 years ago)
Author:
bird
Message:

#563: let's get some output as well..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/testcase/floatingpoint/jsnumexception.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r375 r376  
    11#include <stdio.h>
    22#include <float.h>
     3#include <signal.h>
    34
    45#define JSDOUBLE_HI32_SIGNBIT   0x80000000
     
    3233{
    3334    int i = -1;
     35    _control87(0x262, 0xFFF);
    3436#if 1
    3537    if (    JSDOUBLE_IS_INT(d, i)
     
    5153}
    5254
     55void sigfun(int sig)
     56{
     57    printf("SIGFPE!\n");
     58}
    5359
    5460int main()
     
    6066
    6167    _control87(0x262, 0xFFF);
     68    signal(SIGFPE, sigfun);
    6269
    6370    l = -1;
Note: See TracChangeset for help on using the changeset viewer.