Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / variable-array.c
blobc2a7c2ffb93f47642d3058e0f66d66f82ac3b45a
1 // RUN: %clang_cc1 -emit-llvm < %s | grep puts | count 4
3 int puts(const char *);
5 // PR3248
6 int a(int x)
8 int (*y)[x];
9 return sizeof(*(puts("asdf"),y));
12 // PR3247
13 int b(void) {
14 return sizeof(*(char(*)[puts("asdf")])0);
17 // PR3247
18 int c(void) {
19 static int (*y)[puts("asdf")];
20 return sizeof(*y);