diff options
Diffstat (limited to 'clang/test/CodeGen/vla.c')
| -rw-r--r-- | clang/test/CodeGen/vla.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/CodeGen/vla.c b/clang/test/CodeGen/vla.c index 17704727b02..8011497bf57 100644 --- a/clang/test/CodeGen/vla.c +++ b/clang/test/CodeGen/vla.c @@ -50,3 +50,12 @@ void f_8403108(unsigned x) { } // CHECK: call void @llvm.stackrestore(i8* } + +// pr7827 +void function(short width, int data[][width]) {} + +void test() { + // CHECK: call void @function(i16 signext 1, i32* null) + function(1, 0); +} + |

