mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
COMDAT can only be applied to definitions, not declarations. This manifested in builds of llbuild with SwiftPM on Windows. The nominal type descriptor accessor declaration was marked as COMDAT.
6 lines
81 B
Swift
6 lines
81 B
Swift
private final class C {}
|
|
public func f() {
|
|
var cs: [C] = []
|
|
cs.append(C())
|
|
}
|