Files
swift-mirror/test/Constraints/rdar36226874.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
405 B
Swift

// RUN: %target-swift-frontend -emit-sil -verify %s | %FileCheck %s
func foo(a: Int) {}
func foo(q: String = "", a: Int) {}
// CHECK: function_ref @$s12rdar362268743foo1aySi_tF : $@convention(thin) (Int) -> ()
foo(a: 42)
func bar(a: Int, c: Int) {}
func bar(a: Int, b: Int = 0, c: Int) {}
// CHECK: function_ref @$s12rdar362268743bar1a1cySi_SitF : $@convention(thin) (Int, Int) -> ()
bar(a: 0, c: 42)