diff options
Diffstat (limited to 'test/CodeGen/cleanup-stack.c')
-rw-r--r-- | test/CodeGen/cleanup-stack.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/CodeGen/cleanup-stack.c b/test/CodeGen/cleanup-stack.c new file mode 100644 index 0000000000..360f6e701b --- /dev/null +++ b/test/CodeGen/cleanup-stack.c @@ -0,0 +1,15 @@ +// RUN: clang -emit-llvm %s -o %t && +// RUN: grep "store i32 0, i32* %cleanup" %t | count 2 +void f(int n) { + int a[n]; + + { + int b[n]; + + if (n) + return; + } + + if (n) + return; +} |