Skip to content

Commit 85620d6

Browse files
committed
[test] coverage for bogus exclusivity diagnostic
We shouldn't have an exclusivity issue here. resolves rdar://118274699
1 parent 556c503 commit 85620d6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// RUN: %target-swift-frontend %s -sil-verify-all -c -o /dev/null
2+
3+
// This file is suppose to contain programs that are "correct" through emitting
4+
// an object file, so no diagnostic tests in here, please!
5+
6+
// rdar://118274699
7+
struct Env: ~Copyable {
8+
var constants: Int
9+
}
10+
struct VM: ~Copyable {
11+
let env = Env(constants: 0)
12+
13+
mutating func run() {
14+
env.constants
15+
}
16+
}

0 commit comments

Comments
 (0)