mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This doesn't make a difference on Darwin, but on Linux it causes linker errors if a class inherits from a public class in another module which has private/internal members. fixes SR-1901
13 lines
453 B
Swift
13 lines
453 B
Swift
// RUN: rm -rf %t && mkdir -p %t
|
|
// RUN: %target-build-swift %S/Inputs/vtable_symbol_linkage_base.swift -emit-module -emit-module-path=%t/BaseModule.swiftmodule -emit-library -module-name BaseModule -o %t/BaseModule.%target-dylib-extension
|
|
// RUN: %target-build-swift -I %t %s %t/BaseModule.%target-dylib-extension -o %t/a.out
|
|
|
|
// Check if the program can be linked without undefined symbol errors.
|
|
|
|
import BaseModule
|
|
|
|
public class Derived : Base {
|
|
}
|
|
|
|
|