xref: /aosp_15_r20/external/clang/test/PCH/objc_stmts.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// Test this without pch.
2*67e74705SXin Li// RUN: %clang_cc1 -include %S/objc_stmts.h -emit-llvm -fobjc-exceptions -o - %s
3*67e74705SXin Li// RUN: %clang_cc1 -include %S/objc_stmts.h -ast-print -fobjc-exceptions -o - %s | FileCheck %s
4*67e74705SXin Li
5*67e74705SXin Li// Test with pch.
6*67e74705SXin Li// RUN: %clang_cc1 -x objective-c -emit-pch -fobjc-exceptions -o %t %S/objc_stmts.h
7*67e74705SXin Li// RUN: %clang_cc1 -include-pch %t -emit-llvm -fobjc-exceptions -o - %s
8*67e74705SXin Li// RUN: %clang_cc1 -include-pch %t -ast-print -fobjc-exceptions -o - %s | FileCheck %s
9*67e74705SXin Li
10*67e74705SXin Li// CHECK: @catch(A *a)
11*67e74705SXin Li// CHECK: @catch(B *b)
12*67e74705SXin Li// CHECK: @catch()
13