llvm-project/clang/test/CodeGen/variable-array.c
Eli Friedman 3253e189c6 PR3248: Make sure the evaluate the operand of a sizeof when it has a VLA type.
Adapted from patch by Tim Northover.

llvm-svn: 69566
2009-04-20 03:21:44 +00:00

8 lines
114 B
C

// RUN: clang-cc -emit-llvm < %s | grep puts
int a(int x)
{
int (*y)[x];
return sizeof(*(puts("asdf"),y));
}