blob: 5ff184a91dea72fc9cb1fc6c72578a4c3602f463 [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.
Pirama Arumuga Nainar3ea9e332015-04-08 08:57:32 -070012// CHECK: !MDLexicalBlock(
13// CHECK: !MDLocalVariable(tag: DW_TAG_auto_variable
14// CHECK: !MDLexicalBlock(
15// CHECK: !MDLexicalBlock(