summaryrefslogtreecommitdiff
path: root/tests/test_fgetws_static.c
blob: 361d4f4c7263a9176d5c9d88263a014279d76d11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "common.h"

#define _GNU_SOURCE
#include <wchar.h>

int main(int argc, char** argv) {
  wchar_t buffer[12] = {L'A'};

  CHK_FAIL_START
  fgetws(buffer, 14, NULL);
  CHK_FAIL_END

  printf("%ls\n", buffer);
  return ret;
}