forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding private property to struct or class should trigger downstream …
…builds. Swift SVN r32241
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// RUN: mkdir -p %t | ||
// RUN: %S/../../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: not cmp %t/a.hash %t/b.hash | ||
|
||
// BEGIN a.swift | ||
struct S { | ||
func f2() -> Int { | ||
return 0 | ||
} | ||
|
||
var y: Int = 0 | ||
} | ||
|
||
// BEGIN b.swift | ||
struct S { | ||
func f2() -> Int { | ||
return 0 | ||
} | ||
|
||
private var x: Int = 0 | ||
var y: Int = 0 | ||
} |