summaryrefslogtreecommitdiff
path: root/tests/core/test_printf_2.in
blob: 8fb1617356b193d41628b275621e5982ccf1d527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

int main() {
  char c = '1';
  short s = 2;
  int i = 3;
  long long l = 4;
  float f = 5.5;
  double d = 6.6;

  printf("%c,%hd,%d,%lld,%.1f,%.1llf\n", c, s, i, l, f, d);
  printf("%#x,%#x\n", 1, 0);

  return 0;
}