f4a2713ac8
Change-Id: Ia40e9ffdf29b5dab2f122f673ff6802a58bc690f
15 lines
896 B
Matlab
15 lines
896 B
Matlab
// RUN: %clang_cc1 -x objective-c -fobjc-exceptions -fexceptions -E -dM %s | FileCheck -check-prefix=CHECK-OBJC-NOCXX %s
|
|
// CHECK-OBJC-NOCXX: #define OBJC_ZEROCOST_EXCEPTIONS 1
|
|
// CHECK-OBJC-NOCXX-NOT: #define __EXCEPTIONS 1
|
|
|
|
// RUN: %clang_cc1 -x objective-c++ -fobjc-exceptions -fexceptions -fcxx-exceptions -E -dM %s | FileCheck -check-prefix=CHECK-OBJC-CXX %s
|
|
// CHECK-OBJC-CXX: #define OBJC_ZEROCOST_EXCEPTIONS 1
|
|
// CHECK-OBJC-CXX: #define __EXCEPTIONS 1
|
|
|
|
// RUN: %clang_cc1 -x objective-c++ -fexceptions -fcxx-exceptions -E -dM %s | FileCheck -check-prefix=CHECK-NOOBJC-CXX %s
|
|
// CHECK-NOOBJC-CXX-NOT: #define OBJC_ZEROCOST_EXCEPTIONS 1
|
|
// CHECK-NOOBJC-CXX: #define __EXCEPTIONS 1
|
|
|
|
// RUN: %clang_cc1 -x objective-c -E -dM %s | FileCheck -check-prefix=CHECK-NOOBJC-NOCXX %s
|
|
// CHECK-NOOBJC-NOCXX-NOT: #define OBJC_ZEROCOST_EXCEPTIONS 1
|
|
// CHECK-NOOBJC-NOCXX-NOT: #define __EXCEPTIONS 1
|