clang/test/Driver/driverkit-exceptions.cpp
raw| 1 | // RUN: %clang %s -target x86_64-apple-driverkit19.0 -### 2>&1 | FileCheck %s -check-prefix=DEFAULT |
| 2 | // RUN: %clang %s -target x86_64-apple-driverkit19.0 -fexceptions -### 2>&1 | FileCheck %s -check-prefix=USERPROVIDED |
| 3 | |
| 4 | int main() { return 0; } |
| 5 | // DEFAULT-NOT: "-fcxx-exceptions" |
| 6 | // DEFAULT-NOT: "-fexceptions" |
| 7 | // USERPROVIDED: "-fcxx-exceptions" |
| 8 | // USERPROVIDED: "-fexceptions" |