mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-28 03:46:06 +00:00

This patch enables marshalling of the exception model options while enforcing their mutual exclusivity. The clang driver interface remains the same, this only affects the cc1 command line. Depends on D93215. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D93216
9 lines
528 B
C
9 lines
528 B
C
// RUN: %clang -target armv7-apple-ios -fexceptions -c %s -o /dev/null -### 2>&1 | FileCheck -check-prefix CHECK-IOS %s
|
|
// RUN: %clang -target i686-windows-gnu -fexceptions -c %s -o /dev/null -### 2>&1 | FileCheck -check-prefix CHECK-MINGW-DEFAULT %s
|
|
// RUN: %clang -target i686-windows-gnu -fexceptions -fsjlj-exceptions -c %s -o /dev/null -### 2>&1 | FileCheck -check-prefix CHECK-MINGW-SJLJ %s
|
|
|
|
// CHECK-IOS: -exception-model=sjlj
|
|
// CHECK-MINGW-DEFAULT-NOT: -exception-model=sjlj
|
|
// CHECK-MINGW-SJLJ: -exception-model=sjlj
|
|
|