John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -x objective-c -fobjc-exceptions -fexceptions -E -dM %s | FileCheck -check-prefix=CHECK-OBJC-NOCXX %s |
Douglas Gregor | eced60c | 2011-09-12 15:17:19 +0000 | [diff] [blame] | 2 | // CHECK-OBJC-NOCXX: #define OBJC_ZEROCOST_EXCEPTIONS 1 |
| 3 | // CHECK-OBJC-NOCXX-NOT: #define __EXCEPTIONS 1 |
| 4 | |
John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 5 | // RUN: %clang_cc1 -x objective-c++ -fobjc-exceptions -fexceptions -fcxx-exceptions -E -dM %s | FileCheck -check-prefix=CHECK-OBJC-CXX %s |
Douglas Gregor | eced60c | 2011-09-12 15:17:19 +0000 | [diff] [blame] | 6 | // CHECK-OBJC-CXX: #define OBJC_ZEROCOST_EXCEPTIONS 1 |
| 7 | // CHECK-OBJC-CXX: #define __EXCEPTIONS 1 |
| 8 | |
John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 9 | // RUN: %clang_cc1 -x objective-c++ -fexceptions -fcxx-exceptions -E -dM %s | FileCheck -check-prefix=CHECK-NOOBJC-CXX %s |
Douglas Gregor | eced60c | 2011-09-12 15:17:19 +0000 | [diff] [blame] | 10 | // CHECK-NOOBJC-CXX-NOT: #define OBJC_ZEROCOST_EXCEPTIONS 1 |
| 11 | // CHECK-NOOBJC-CXX: #define __EXCEPTIONS 1 |
| 12 | |
John McCall | d1e40d5 | 2011-10-02 01:16:38 +0000 | [diff] [blame] | 13 | // RUN: %clang_cc1 -x objective-c -E -dM %s | FileCheck -check-prefix=CHECK-NOOBJC-NOCXX %s |
Douglas Gregor | eced60c | 2011-09-12 15:17:19 +0000 | [diff] [blame] | 14 | // CHECK-NOOBJC-NOCXX-NOT: #define OBJC_ZEROCOST_EXCEPTIONS 1 |
| 15 | // CHECK-NOOBJC-NOCXX-NOT: #define __EXCEPTIONS 1 |