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