Files
swift-mirror/test/Profiler/Inputs/unmapped_secondary.swift
Hamish Knight bd18c37b82 [Profiler] Adopt SILDeclRef::hasUserWrittenCode
This replaces some of the existing checks, and
ensures that we don't emit coverage maps for
property wrapper backing initializers that don't
contain user code.

rdar://99931619
2022-09-29 10:08:15 +01:00

23 lines
418 B
Swift

// A secondary file for unmapped.swift that can contain profiled code.
@propertyWrapper
struct Wrapper<T> {
var wrappedValue: T
}
struct Projected<T> {
var value: T
}
@propertyWrapper
struct WrapperWithProjectedValue<T> {
var wrappedValue: T
init(projectedValue: Projected<T>) {
self.wrappedValue = projectedValue.value
}
var projectedValue: Projected<T> {
Projected(value: wrappedValue)
}
}