blob: 618d3a2232297fb89ae5aabbacfe22901bf6393c [file] [log] [blame]
Eric Christopherb9c8c422011-10-19 00:44:01 +00001// 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
David Blaikiea6504852013-01-26 22:16:26 +000010// We should have 3 lexical blocks here at the moment, including one
Eric Christopherb9c8c422011-10-19 00:44:01 +000011// for the catch block.
12// CHECK: lexical_block
13// CHECK: lexical_block
Eric Christopherb9c8c422011-10-19 00:44:01 +000014// CHECK: auto_variable
15// CHECK: lexical_block