mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
...and repurpose "SC" for (C)lang-importer-synthesized decls, instead of just decls that are C-like instead of ObjC-like. (See next commits.)
22 lines
823 B
Swift
22 lines
823 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/abi %s -emit-ir -parse-as-library | %FileCheck %s
|
|
|
|
import c_layout
|
|
|
|
// CHECK-DAG: @__swift_reflection_version = linkonce_odr hidden constant i16 {{[0-9]+}}
|
|
|
|
// CHECK-DAG: @_T028reflection_metadata_imported15HasImportedTypeVMF = internal constant {{.*}}swift3_fieldmd
|
|
// CHECK-DAG: @_T0So1AVMB = linkonce_odr hidden constant {{.*}}swift3_builtin
|
|
// CHECK-DAG: @_T0So11CrappyColorVMB = linkonce_odr hidden constant {{.*}}swift3_builtin
|
|
// CHECK-DAG: @_T0So11CrappyColorVs16RawRepresentable8c_layoutMA = linkonce_odr hidden constant {{.*}}swift3_assocty
|
|
|
|
struct HasImportedType {
|
|
let a: A
|
|
let c: CrappyColor
|
|
}
|
|
|
|
func takesRawRepresentable<T : RawRepresentable>(_: T) {}
|
|
|
|
func passesRawRepresentable(_ c: CrappyColor) {
|
|
takesRawRepresentable(c)
|
|
}
|