llvm-project/clang/test/CodeGen/sizeof-vla.c

14 lines
178 B
C

// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o %t %s
// PR3442
void *g(unsigned long len);
void
f(int n)
{
unsigned begin_set[n];
g(sizeof(begin_set));
}