1*4e3a01faSJustin Bogner // RUN: %clang -E -fexceptions %s -o - | FileCheck --check-prefix=CHECK-EXCEPTIONS %s 2*4e3a01faSJustin Bogner // RUN: %clang -E -fexceptions -fno-cxx-exceptions %s -o - | FileCheck --check-prefix=CHECK-NO-EXCEPTIONS %s 3*4e3a01faSJustin Bogner // RUN: %clang -E -fno-exceptions %s -o - | FileCheck --check-prefix=CHECK-NO-EXCEPTIONS %s 4*4e3a01faSJustin Bogner 5*4e3a01faSJustin Bogner // RUN: %clang_cc1 -E -fcxx-exceptions %s -o - | FileCheck --check-prefix=CHECK-EXCEPTIONS %s 6*4e3a01faSJustin Bogner // RUN: %clang_cc1 -E -fobjc-exceptions %s -o - | FileCheck --check-prefix=CHECK-NO-EXCEPTIONS %s 7*4e3a01faSJustin Bogner // RUN: %clang_cc1 -E -fexceptions %s -o - | FileCheck --check-prefix=CHECK-NO-EXCEPTIONS %s 88452ef07SDaniel Dunbar // RUN: %clang_cc1 -E %s -o - | FileCheck --check-prefix=CHECK-NO-EXCEPTIONS %s 95ef26fb4STed Kremenek 105ef26fb4STed Kremenek #if __has_feature(cxx_exceptions) 115ef26fb4STed Kremenek int foo(); 125ef26fb4STed Kremenek #else 135ef26fb4STed Kremenek int bar(); 145ef26fb4STed Kremenek #endif 155ef26fb4STed Kremenek 165ef26fb4STed Kremenek // CHECK-EXCEPTIONS: foo 175ef26fb4STed Kremenek // CHECK-NO-EXCEPTIONS: bar 18