| // 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" |