Commit | Line | Data |
---|---|---|
127d61a3 C |
1 | From research!ikeya!rob Sun Sep 13 17:04:21 1981 |
2 | /* | |
3 | * This program prints an infinite number of fpe's, | |
4 | * because the pc is not advanced on FPE's. | |
5 | * 11/750 microcode bug. | |
6 | * On 11/780, die from Operand fault, which is | |
7 | * correct. | |
8 | * Please try it on your 750 and tell me what happens. | |
9 | */ | |
10 | #include <signal.h> | |
11 | inter(){ | |
12 | printf("fpe\n"); | |
13 | signal(SIGFPE, inter); | |
14 | return; | |
15 | } | |
16 | main(){ | |
17 | double x=0.0; | |
18 | signal(SIGFPE, inter); | |
19 | printf("%f\n", 3.4/x); | |
20 | } | |
21 | ||
22 |