aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/profiling/test_profiling.c
blob: 013b1d68a121e9fe5ac311ec3db177e06233d2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char **argv) {
  if (argc < 2) return 1;
  int i = atoi(argv[1]);
  if (i > 0) {
    printf("positive\n");
  } else if (i==0) {
    printf("zero\n");
  } else {
    printf("negative\n");
  }
  return 0;
}