Skip to content

Commit f72232e

Browse files
committed
[Test] Add some TBDGen test cases for enum case witnesses
1 parent 6e4c88d commit f72232e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// REQUIRES: VENDOR=apple
2+
// RUN: %target-swift-frontend -emit-ir -enable-testing -o/dev/null -module-name test -validate-tbd-against-ir=all %s
3+
// RUN: %target-swift-frontend -emit-ir -o/dev/null -module-name test -validate-tbd-against-ir=all %s
4+
5+
protocol ProtoInternal {
6+
static var bar1: Self { get }
7+
static func bar2(arg: Int) -> Self
8+
}
9+
10+
enum EnumInternal: ProtoInternal {
11+
case bar1
12+
case bar2(arg: Int)
13+
}
14+
15+
public protocol ProtoPublic {
16+
static var bar3: Self { get }
17+
static func bar4(arg: Int) -> Self
18+
}
19+
20+
public enum EnumPublic: ProtoPublic {
21+
case bar3
22+
case bar4(arg: Int)
23+
}

0 commit comments

Comments
 (0)