summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/mingw-w64-seh-exceptions.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-11-14 02:01:10 +0000
committerReid Kleckner <reid@kleckner.net>2014-11-14 02:01:10 +0000
commitb27216c806161a863227e115a7e6598b89f28445 (patch)
tree0cf4c94b8ce911adcf39379a7699a4d08b094ac6 /test/CodeGenCXX/mingw-w64-seh-exceptions.cpp
parent22dc02b19ced0534aba95ded55b099b4da7b934a (diff)
Remove -fseh-exceptions in favor of checking the triple
This option was misleading because it looked like it enabled the language feature of SEH (__try / __except), when this option was really controlling which EH personality function to use. Mingw only supports SEH and SjLj EH on x86_64, so we can simply do away with this flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221963 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/mingw-w64-seh-exceptions.cpp')
-rw-r--r--test/CodeGenCXX/mingw-w64-seh-exceptions.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/CodeGenCXX/mingw-w64-seh-exceptions.cpp b/test/CodeGenCXX/mingw-w64-seh-exceptions.cpp
index f247e99739..bacddb2936 100644
--- a/test/CodeGenCXX/mingw-w64-seh-exceptions.cpp
+++ b/test/CodeGenCXX/mingw-w64-seh-exceptions.cpp
@@ -1,4 +1,5 @@
-// RUN: %clang_cc1 %s -fexceptions -fseh-exceptions -emit-llvm -triple x86_64-w64-windows-gnu -o - | FileCheck %s
+// RUN: %clang_cc1 %s -fexceptions -emit-llvm -triple x86_64-w64-windows-gnu -o - | FileCheck %s --check-prefix=X64
+// RUN: %clang_cc1 %s -fexceptions -emit-llvm -triple i686-w64-windows-gnu -o - | FileCheck %s --check-prefix=X86
extern "C" void foo();
extern "C" void bar();
@@ -14,6 +15,10 @@ extern "C" void test() {
foo();
}
-// CHECK: define void @test()
-// CHECK: invoke void @foo()
-// CHECK: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_seh0 to i8*)
+// X64: define void @test()
+// X64: invoke void @foo()
+// X64: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_seh0 to i8*)
+
+// X86: define void @test()
+// X86: invoke void @foo()
+// X86: landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)