aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/cleanup-stack.c
blob: 3a134329a131ac71359bc9b0ecb6e13985008570 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// RUN: clang-cc -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;
}