Files
swift-mirror/test/IRGen/outlined_copy_addr_data.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

24 lines
603 B
Swift

// RUN: %target-swift-frontend -emit-ir -module-name outcopyaddr -primary-file %s | %FileCheck %s
// REQUIRES: objc_interop
import Foundation
struct Resource<A> {
let requestBody: Data?
let parse: (Data) -> A?
}
// CHECK-LABEL: define hidden swiftcc void @"$s11outcopyaddr13CrashMetaTypeC10apiRequest4base8resourceySS_AA8ResourceVyxGtlFZ"
// CHECK: entry:
// CHECK: alloca
// CHECK: alloca
// CHECK: alloca
// CHECK: store
// CHECK: store
// CHECK: store
// CHECK: ret void
class CrashMetaType {
required init() { }
class func apiRequest<A>(base: String, resource: Resource<A>) {}
}