aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_i64_qdouble.in
blob: db47afa6f49f4bb63bb1540eac31eee110176e71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdio.h>
typedef long long qint64; /* 64 bit signed */
typedef double qreal;

int main(int argc, char **argv) {
  qreal c = 111;
  qint64 d = -111 + (argc - 1);
  c += d;
  if (c < -1 || c > 1) {
    printf("Failed!\n");
  } else {
    printf("Succeeded!\n");
  }
};