Eric Christopher | b9c8c42 | 2011-10-19 00:44:01 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -g -fobjc-exceptions -emit-llvm %s -o - | FileCheck %s |
| 2 | @interface Foo @end |
| 3 | void f0() { |
| 4 | @try { |
| 5 | @throw @"a"; |
| 6 | } @catch(Foo *e) { |
| 7 | } |
| 8 | } |
| 9 | |
David Blaikie | a650485 | 2013-01-26 22:16:26 +0000 | [diff] [blame] | 10 | // We should have 3 lexical blocks here at the moment, including one |
Eric Christopher | b9c8c42 | 2011-10-19 00:44:01 +0000 | [diff] [blame] | 11 | // for the catch block. |
Pirama Arumuga Nainar | 3ea9e33 | 2015-04-08 08:57:32 -0700 | [diff] [blame] | 12 | // CHECK: !MDLexicalBlock( |
| 13 | // CHECK: !MDLocalVariable(tag: DW_TAG_auto_variable |
| 14 | // CHECK: !MDLexicalBlock( |
| 15 | // CHECK: !MDLexicalBlock( |