mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Test code quality for variable length array references.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36163 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6339d4ab67
commit
6852c616ed
7
test/CFrontend/2007-03-27-VarLengthArray.c
Normal file
7
test/CFrontend/2007-03-27-VarLengthArray.c
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
// RUN: %llvmgcc -S %s -o - | grep {getelementptr i32}
|
||||||
|
extern void f(int *);
|
||||||
|
int e(int m, int n) {
|
||||||
|
int x[n];
|
||||||
|
f(x);
|
||||||
|
return x[m];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user