Browse Source

add a separate tcc zerosign test which was sent to tcc mailing list

pull/1/head
Sami Vaarala 11 years ago
parent
commit
4340d6855f
  1. 0
      misc/tcc_zerosign1.c
  2. 9
      misc/tcc_zerosign2.c

0
misc/tcc_zerosign.c → misc/tcc_zerosign1.c

9
misc/tcc_zerosign2.c

@ -0,0 +1,9 @@
#include <stdio.h>
#include <math.h>
int main(int argc, char *argv[]) {
double d = 0.0;
printf("signbit: %d\n", signbit(d));
d = -d;
printf("signbit: %d\n", signbit(d));
}
Loading…
Cancel
Save