Clang Project

clang_source_code/test/CodeGen/2007-03-27-VarLengthArray.c
1// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
2
3// CHECK: getelementptr inbounds i32, i32* %{{vla|[0-9]}}
4extern void f(int *);
5int e(int m, int n) {
6  int x[n];
7  f(x);
8  return x[m];
9}
10