blob: b290b74da23921fb187abc755b08e158af094dd1 [file] [log] [blame]
Roman Lebedevfdc94fc2022-12-09 00:52:21 +03001; RUN: opt -passes=verify %s
Tim Northover67b1bc42021-02-10 14:35:16 +00002
Nikita Popove0f7b7e2023-01-05 13:10:32 +01003define swifttailcc void @valid_attrs(ptr sret(i64) %ret, ptr byval(i8) %byval, ptr swiftself %self, ptr swiftasync %ctx) {
4 musttail call swifttailcc void @valid_attrs(ptr sret(i64) %ret, ptr byval(i8) %byval, ptr swiftself %self, ptr swiftasync %ctx)
Tim Northover67b1bc42021-02-10 14:35:16 +00005 ret void
6}
7
8define swifttailcc void @mismatch_parms() {
Nikita Popove0f7b7e2023-01-05 13:10:32 +01009 musttail call swifttailcc void @valid_attrs(ptr sret(i64) undef, ptr byval(i8) undef, ptr swiftself undef, ptr swiftasync undef)
Tim Northover67b1bc42021-02-10 14:35:16 +000010 ret void
11}