summaryrefslogtreecommitdiff
path: root/tests/test_issue57_strcpy.c
blob: 24f8ab180e53ba4c921f9bc19b65c48e1ebf73ef (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "common.h"

#include <string.h>

int main(int argc, char** argv) {
  char buffer[32] ={'a', 'b', 'c', 0};
  strcpy(buffer , buffer + 16);
  puts(buffer);

  return ret;
}