Skip to content

Commit 9ba06ea

Browse files
authored
Merge pull request #70166 from kavon/test-coverage-exclusivity-5.10
[5.10🍒][test] coverage for bogus exclusivity diagnostic
2 parents e717cd7 + 4595657 commit 9ba06ea

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)