annotate clang/test/CodeGenObjC/catch-lexical-block.m @ 180:680fa57a2f20

fix compile errors.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 30 May 2020 17:44:06 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -debug-info-kind=limited -fobjc-exceptions -emit-llvm %s -o - | FileCheck %s
anatofuz
parents:
diff changeset
2 @interface Foo @end
anatofuz
parents:
diff changeset
3 void f0() {
anatofuz
parents:
diff changeset
4 @try {
anatofuz
parents:
diff changeset
5 @throw @"a";
anatofuz
parents:
diff changeset
6 } @catch(Foo *e) {
anatofuz
parents:
diff changeset
7 }
anatofuz
parents:
diff changeset
8 }
anatofuz
parents:
diff changeset
9
anatofuz
parents:
diff changeset
10 // We should have 3 lexical blocks here at the moment, including one
anatofuz
parents:
diff changeset
11 // for the catch block.
anatofuz
parents:
diff changeset
12 // CHECK: !DILexicalBlock(
anatofuz
parents:
diff changeset
13 // CHECK: !DILocalVariable(
anatofuz
parents:
diff changeset
14 // CHECK: !DILexicalBlock(
anatofuz
parents:
diff changeset
15 // CHECK: !DILexicalBlock(