blob: 1e4fbcc8f6366bdbc9b73055bbd8764b58a4161c [file] [log] [blame]
// RUN: %target-swift-frontend -emit-silgen -primary-file %s %S/Inputs/InterestingType.swift -DOLD -emit-reference-dependencies-path %t.swiftdeps -module-name main | %FileCheck %s -check-prefix=CHECK-OLD
// RUN: %FileCheck -check-prefix=CHECK-DEPS %s < %t.swiftdeps
// RUN: %target-swift-frontend -emit-silgen -primary-file %s %S/Inputs/InterestingType.swift -DNEW -emit-reference-dependencies-path %t.swiftdeps -module-name main | %FileCheck %s -check-prefix=CHECK-NEW
// RUN: %FileCheck -check-prefix=CHECK-DEPS %s < %t.swiftdeps
private struct Test {}
extension Test : InterestingProto {}
// CHECK-OLD: sil_global @$s4main1x{{[^ ]+}} : $Int
// CHECK-NEW: sil_global @$s4main1x{{[^ ]+}} : $Double
public var x = Test().make() + 0
// CHECK-DEPS-LABEL: depends-top-level:
// CHECK-DEPS: - "InterestingProto"
// CHECK-DEPS-LABEL: depends-member:
// CHECK-DEPS: - ["4main{{8IntMaker|11DoubleMaker}}P", "make"]
// CHECK-DEPS-LABEL: depends-nominal:
// CHECK-DEPS: - "4main{{8IntMaker|11DoubleMaker}}P"