Clang Project

clang_source_code/test/CodeGenCXX/mingw-w64-exceptions.c
1// RUN: %clang -target x86_64-windows-gnu -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-SEH
2// RUN: %clang -target i686-windows-gnu -c %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-DWARF
3
4// RUN: %clang -target x86_64-windows-gnu -fsjlj-exceptions -c %s -### 2>&1 | \
5// RUN: FileCheck %s --check-prefix=CHECK-SJLJ
6
7// RUN: %clang -target x86_64-windows-gnu -fdwarf-exceptions -c %s -### 2>&1 | \
8// RUN: FileCheck %s --check-prefix=CHECK-DWARF
9
10// RUN: %clang -target x86_64-windows-gnu -fsjlj-exceptions -fseh-exceptions -c %s -### 2>&1 | \
11// RUN: FileCheck %s --check-prefix=CHECK-SEH
12
13// RUN: %clang -target x86_64-windows-gnu -fseh-exceptions -fsjlj-exceptions -c %s -### 2>&1 | \
14// RUN: FileCheck %s --check-prefix=CHECK-SJLJ
15
16// RUN: %clang -target x86_64-windows-gnu -fseh-exceptions -fdwarf-exceptions -c %s -### 2>&1 | \
17// RUN: FileCheck %s --check-prefix=CHECK-DWARF
18
19// CHECK-SEH: "-fseh-exceptions"
20// CHECK-SJLJ: "-fsjlj-exceptions"
21// CHECK-DWARF-NOT: "-fsjlj-exceptions"
22// CHECK-DWARF-NOT: "-fseh-exceptions"
23