1*67e74705SXin Li// RUN: %clang -fexceptions -emit-llvm -x objc++-cpp-output -S %s -o /dev/null 2*67e74705SXin Li// RUN: %clang -fexceptions -emit-llvm -x objc++-cpp-output -S %s -o /dev/null -### 2>&1 | FileCheck %s 3*67e74705SXin Li 4*67e74705SXin Li// PR13820 5*67e74705SXin Li// REQUIRES: LP64 6*67e74705SXin Li 7*67e74705SXin Li// Should compile without errors 8*67e74705SXin Li@protocol P 9*67e74705SXin Li- (void)m; 10*67e74705SXin Li@end 11*67e74705SXin Livoid f() {} 12*67e74705SXin Liclass C {}; 13*67e74705SXin Li 14*67e74705SXin Li// Make sure the driver is passing all the necessary exception flags. 15*67e74705SXin Li// CHECK: "-fobjc-exceptions" 16*67e74705SXin Li// CHECK: "-fcxx-exceptions" 17*67e74705SXin Li// CHECK: "-fexceptions" 18