diff options
Diffstat (limited to 'clang/test/CodeGen/2007-03-01-VarSizeArrayIdx.c')
-rw-r--r-- | clang/test/CodeGen/2007-03-01-VarSizeArrayIdx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeGen/2007-03-01-VarSizeArrayIdx.c b/clang/test/CodeGen/2007-03-01-VarSizeArrayIdx.c new file mode 100644 index 0000000..7a9f89a --- /dev/null +++ b/clang/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]; +} + |