Files
swift-mirror/test/InterfaceHash/edited_property_getter.swift
Rintaro Ishizaki 1bdce7ced6 [lit] Add substitutions: %utils and %line-directive
%utils => ${SWIFT_SOURCE_DIR}/utils
%line-directive => ${SWIFT_SOURCE_DIR}/utils/line-directive
2016-06-11 02:41:15 +09:00

21 lines
380 B
Swift

// RUN: mkdir -p %t
// RUN: %utils/split_file.py -o %t %s
// RUN: %target-swift-frontend -dump-interface-hash %t/a.swift 2> %t/a.hash
// RUN: %target-swift-frontend -dump-interface-hash %t/b.swift 2> %t/b.hash
// RUN: cmp %t/a.hash %t/b.hash
// BEGIN a.swift
class C {
var p: Int {
return 0
}
}
// BEGIN b.swift
class C {
var p: Int {
let x = 1
return x
}
}