blob: 8deb14a8154511263823616f2842650dd4495342 [file] [log] [blame]
Douglas Gregor8f5e3dd2010-04-23 22:50:49 +00001// Test this without pch.
Anders Carlssone9b801f2011-02-22 01:52:06 +00002// RUN: %clang_cc1 -include %S/objc_stmts.h -emit-llvm -fobjc-exceptions -o - %s
Alexander Kornienkod538ed92012-12-20 02:09:13 +00003// RUN: %clang_cc1 -include %S/objc_stmts.h -ast-print -fobjc-exceptions -o - %s | FileCheck %s
Douglas Gregor8f5e3dd2010-04-23 22:50:49 +00004
5// Test with pch.
Anders Carlssone9b801f2011-02-22 01:52:06 +00006// RUN: %clang_cc1 -x objective-c -emit-pch -fobjc-exceptions -o %t %S/objc_stmts.h
7// RUN: %clang_cc1 -include-pch %t -emit-llvm -fobjc-exceptions -o - %s
Alexander Kornienkod538ed92012-12-20 02:09:13 +00008// RUN: %clang_cc1 -include-pch %t -ast-print -fobjc-exceptions -o - %s | FileCheck %s
Douglas Gregor8f5e3dd2010-04-23 22:50:49 +00009
Alexander Kornienkod538ed92012-12-20 02:09:13 +000010// CHECK: @catch(A *a)
11// CHECK: @catch(B *b)
12// CHECK: @catch()