diff options
Diffstat (limited to 'test/FrontendC/2007-03-01-VarSizeArrayIdx.c')
-rw-r--r-- | test/FrontendC/2007-03-01-VarSizeArrayIdx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/FrontendC/2007-03-01-VarSizeArrayIdx.c b/test/FrontendC/2007-03-01-VarSizeArrayIdx.c new file mode 100644 index 0000000..a3d480c --- /dev/null +++ b/test/FrontendC/2007-03-01-VarSizeArrayIdx.c @@ -0,0 +1,7 @@ +// RUN: %llvmgcc %s -O3 -S -o - -emit-llvm | grep mul +// PR1233 + +float foo(int w, float A[][w], int g, int h) { + return A[g][0]; +} + |