mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 20:56: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
23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
// RUN: %clang -target x86_64-windows-gnu -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SEH
|
|
// RUN: %clang -target i686-windows-gnu -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-DWARF
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fsjlj-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-SJLJ
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fdwarf-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-DWARF
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fsjlj-exceptions -fseh-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-SEH
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fseh-exceptions -fsjlj-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-SJLJ
|
|
|
|
// RUN: %clang -target x86_64-windows-gnu -fseh-exceptions -fdwarf-exceptions -c %s -### 2>&1 | \
|
|
// RUN: FileCheck %s --check-prefix=CHECK-DWARF
|
|
|
|
// CHECK-SEH: "-exception-model=seh"
|
|
// CHECK-SJLJ: "-exception-model=sjlj"
|
|
// CHECK-DWARF-NOT: "-exception-model=sjlj"
|
|
// CHECK-DWARF-NOT: "-exception-model=seh"
|