summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/mingw-w64-exceptions.c
blob: e980ebd33505ec64f1b9c2a38b79109a2623e40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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: "-fseh-exceptions"
// CHECK-SJLJ: "-fsjlj-exceptions"
// CHECK-DWARF-NOT: "-fsjlj-exceptions"
// CHECK-DWARF-NOT: "-fseh-exceptions"