Files
Jordan Rose 7629253ab5 Test that newer libobjcs let the Swift runtime set up a class's layout (#21942)
Specifically, when the class is referenced from Objective-C first,
before being referenced from Swift in any way. This is important for
resilience, since up until now Objective-C isn't used to the size of a
class changing based on anything other than a superclass's size
changing.

This is basically the test that would have gone with 9024768b0 had
there been a build of libobjc to test it with.

rdar://problem/45718008
2019-01-17 17:39:44 -08:00

12 lines
185 B
Swift

public struct GrowsToInt64 {
#if SMALL
var value: Int32
#elseif BIG
var value: Int64
#else
#error("Must define SMALL or BIG")
#endif
public init() { self.value = 0 }
}