1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null 2 3 typedef __SIZE_TYPE__ size_t; 4 void *alloca(size_t size); 5 char *strcpy(char *restrict s1, const char *restrict s2); 6 int puts(const char *s); 7 int main(int argc, char **argv) { 8 char *C = (char*)alloca(argc); 9 strcpy(C, argv[0]); 10 puts(C); 11 } 12