summaryrefslogtreecommitdiff
path: root/tests/test_bcopy_static_read.c
blob: e7a3c743720d478d919cf75a32d1e98c0d72bc7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#define _GNU_SOURCE

#include "common.h"

#include <string.h>

int main(int argc, char** argv) {
  char buffer[8] = {0};
  bcopy("123456", buffer, 4);
  puts(buffer);

  CHK_FAIL_START
  bcopy("123456", buffer, sizeof(buffer));
  CHK_FAIL_END

  puts(buffer);
  return ret;
}