xref: /llvm-project/clang/test/Driver/driverkit-exceptions.cpp (revision 12949c952c4fbad776a860c003ccf176973278a0)
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 
main()4 int main() { return 0; }
5 // DEFAULT-NOT: "-fcxx-exceptions"
6 // DEFAULT-NOT: "-fexceptions"
7 // USERPROVIDED: "-fcxx-exceptions"
8 // USERPROVIDED: "-fexceptions"
9