mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
400 B
Swift
22 lines
400 B
Swift
// RUN: %target-resilience-test
|
|
// REQUIRES: executable_test
|
|
|
|
import StdlibUnittest
|
|
import class_add_property_attribute
|
|
|
|
|
|
var AddPropertyAttribute = TestSuite("AddPropertyAttribute")
|
|
|
|
AddPropertyAttribute.test("AddPropertyAttribute") {
|
|
do {
|
|
let x = MathClass()
|
|
let y = MathClass()
|
|
|
|
let a = Attributed(x: x, y: y)
|
|
expectTrue(x === a.x)
|
|
expectTrue(y === a.y)
|
|
}
|
|
}
|
|
|
|
runAllTests()
|