blob: d5aeee143beaac088e74817852eb5e303f154928 [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
Eric Christopherb9c8c422011-10-19 00:44:01 +000013// CHECK: auto_variable
14// CHECK: lexical_block
Stephen Hines176edba2014-12-01 14:53:08 -080015// CHECK: lexical_block