aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_fast_math.in
blob: e3b283aac9c0f8b52260d9ac1559ede7e278a632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char** argv) {
  char* endptr;
  --argc, ++argv;
  double total = 0.0;
  for (; argc; argc--, argv++) {
    total += strtod(*argv, &endptr);
  }
  printf("total: %g\n", total);
  return 0;
}