2010-04-24 06:50:49 +08:00
|
|
|
// Test this without pch.
|
2011-02-22 09:52:06 +08:00
|
|
|
// RUN: %clang_cc1 -include %S/objc_stmts.h -emit-llvm -fobjc-exceptions -o - %s
|
2012-12-20 10:09:13 +08:00
|
|
|
// RUN: %clang_cc1 -include %S/objc_stmts.h -ast-print -fobjc-exceptions -o - %s | FileCheck %s
|
2010-04-24 06:50:49 +08:00
|
|
|
|
|
|
|
// Test with pch.
|
2011-02-22 09:52:06 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -emit-pch -fobjc-exceptions -o %t %S/objc_stmts.h
|
|
|
|
// RUN: %clang_cc1 -include-pch %t -emit-llvm -fobjc-exceptions -o - %s
|
2012-12-20 10:09:13 +08:00
|
|
|
// RUN: %clang_cc1 -include-pch %t -ast-print -fobjc-exceptions -o - %s | FileCheck %s
|
2010-04-24 06:50:49 +08:00
|
|
|
|
2012-12-20 10:09:13 +08:00
|
|
|
// CHECK: @catch(A *a)
|
|
|
|
// CHECK: @catch(B *b)
|
|
|
|
// CHECK: @catch()
|