mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
21 lines
651 B
Swift
21 lines
651 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -new-mangling-for-tests -emit-sil %s | %FileCheck %s
|
|
|
|
import ctypes
|
|
struct S {
|
|
let a: Int
|
|
let b: Int
|
|
let c: Int
|
|
}
|
|
struct T {
|
|
let v: StructWithBitfields
|
|
let s: S
|
|
init(v: StructWithBitfields, s: S) {
|
|
self.v = v
|
|
self.s = s
|
|
}
|
|
}
|
|
// CHECK-LABEL: sil hidden @_T042predictable_memopt_unreferenceable_storage1TVACSC19StructWithBitfieldsV1v_AA1SV1stcfC
|
|
// CHECK: bb0(%0 : $StructWithBitfields, %1 : $S, %2 : $@thin T.Type):
|
|
// CHECK: [[RESULT:%.*]] = struct $T (%0 : $StructWithBitfields, %1 : $S)
|
|
// CHECK: return [[RESULT]]
|