[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / CodeGen / alloca.c
blob30ba8bb8e218de553ea217f9c4767854b1993260
1 // RUN: %clang_cc1 -emit-llvm %s -o /dev/null
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);