Skip to content

Commit 296d829

Browse files
committed
[Test] Check imported enum is BC.
1 parent 8569b6e commit 296d829

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/Sema/bitwse_copyable_import.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ struct IntsTrailing3 {
6060
int is[];
6161
} __attribute__((__swift_attr__("_BitwiseCopyable")));
6262

63+
enum E {
64+
foo,
65+
bar
66+
};
67+
6368
//--- Downstream.swift
6469

6570
func take<T : _BitwiseCopyable>(_ t: T) {}
@@ -85,3 +90,7 @@ func passIntsTrailing2(_ t: IntsTrailing2) {
8590
func passIntsTrailing3(_ t: IntsTrailing3) {
8691
take(t)
8792
}
93+
94+
func passE(_ e: E) {
95+
take(e)
96+
}

0 commit comments

Comments
 (0)