summaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/sizeof-vla.c
blob: c5fc91251933386655c766713e9199ba7b085bc4 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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));
}