2011-10-19 08:44:01 +08:00
|
|
|
// RUN: %clang_cc1 -g -fobjc-exceptions -emit-llvm %s -o - | FileCheck %s
|
|
|
|
@interface Foo @end
|
|
|
|
void f0() {
|
|
|
|
@try {
|
|
|
|
@throw @"a";
|
|
|
|
} @catch(Foo *e) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-27 06:16:26 +08:00
|
|
|
// We should have 3 lexical blocks here at the moment, including one
|
2011-10-19 08:44:01 +08:00
|
|
|
// for the catch block.
|
|
|
|
// CHECK: lexical_block
|
|
|
|
// CHECK: auto_variable
|
|
|
|
// CHECK: lexical_block
|
2014-10-23 03:34:33 +08:00
|
|
|
// CHECK: lexical_block
|