xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/catch-lexical-block.m (revision b5e2faaaaf60a8b9a02f8d72f64caa56a87eb312)
1// RUN: %clang_cc1 -g -fobjc-exceptions -emit-llvm %s -o - | FileCheck %s
2@interface Foo @end
3void f0() {
4  @try {
5    @throw @"a";
6  } @catch(Foo *e) {
7  }
8}
9
10// We should have 3 lexical blocks here at the moment, including one
11// for the catch block.
12// CHECK: lexical_block
13// CHECK: lexical_block
14// CHECK: auto_variable
15// CHECK: lexical_block
16