Files
swift-mirror/test/SILOptimizer/devirtualize_inlinable_mandatory.swift
Erik Eckstein 39bb14b094 change mangling prefix from $S to $s
This is the final ABI mangling prefix

rdar://problem/38471478
2018-09-19 13:55:11 -07:00

14 lines
442 B
Swift

// RUN: %target-swift-frontend %s -whole-module-optimization -emit-sil | %FileCheck %s
public class C {
public func f() {}
}
//CHECK-LABEL: sil [serialized] @$s32devirtualize_inlinable_mandatory1gyyAA1CCF : $@convention(thin) (@guaranteed C) -> () {
//CHECK: class_method %0 : $C, #C.f!1 : (C) -> () -> (), $@convention(method) (@guaranteed C) -> ()
//CHECK-NOT: function_ref
//CHECK: return
@inlinable public func g(_ x: C) {
x.f()
}