blob: 5484370a767a3b5d5c740f0528935d6c09abeb48 [file] [log] [blame]
Dave Leef9b72322017-10-20 17:04:43 +00001; RUN: opt -mtriple=i686-unknown-windows-msvc -S -x86-winehstate < %s | FileCheck %s
2
3$f = comdat any
4
5define void @f() comdat personality i32 (...)* @__CxxFrameHandler3 {
6 invoke void @g() to label %return unwind label %unwind
7return:
8 ret void
9unwind:
10 %pad = cleanuppad within none []
11 cleanupret from %pad unwind to caller
12}
13
14declare void @g()
15declare i32 @__CxxFrameHandler3(...)
16
17; CHECK: define internal i32 @"__ehhandler$f"(i8*, i8*, i8*, i8*){{ .+}} comdat($f) {