2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -fobjc-exceptions -fexceptions -E -dM %s | FileCheck -check-prefix=CHECK-OBJC-NOCXX %s
|
2011-09-12 23:17:19 +08:00
|
|
|
// CHECK-OBJC-NOCXX: #define OBJC_ZEROCOST_EXCEPTIONS 1
|
2014-10-28 04:02:19 +08:00
|
|
|
// CHECK-OBJC-NOCXX: #define __EXCEPTIONS 1
|
2011-09-12 23:17:19 +08:00
|
|
|
|
2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c++ -fobjc-exceptions -fexceptions -fcxx-exceptions -E -dM %s | FileCheck -check-prefix=CHECK-OBJC-CXX %s
|
2011-09-12 23:17:19 +08:00
|
|
|
// CHECK-OBJC-CXX: #define OBJC_ZEROCOST_EXCEPTIONS 1
|
|
|
|
// CHECK-OBJC-CXX: #define __EXCEPTIONS 1
|
|
|
|
|
2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c++ -fexceptions -fcxx-exceptions -E -dM %s | FileCheck -check-prefix=CHECK-NOOBJC-CXX %s
|
2011-09-12 23:17:19 +08:00
|
|
|
// CHECK-NOOBJC-CXX-NOT: #define OBJC_ZEROCOST_EXCEPTIONS 1
|
|
|
|
// CHECK-NOOBJC-CXX: #define __EXCEPTIONS 1
|
|
|
|
|
2011-10-02 09:16:38 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c -E -dM %s | FileCheck -check-prefix=CHECK-NOOBJC-NOCXX %s
|
2011-09-12 23:17:19 +08:00
|
|
|
// CHECK-NOOBJC-NOCXX-NOT: #define OBJC_ZEROCOST_EXCEPTIONS 1
|
|
|
|
// CHECK-NOOBJC-NOCXX-NOT: #define __EXCEPTIONS 1
|