We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bf0b45 commit fde0c78Copy full SHA for fde0c78
test/embedded/arrays-enums.swift
@@ -0,0 +1,20 @@
1
+// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -parse-as-library -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop) | %FileCheck %s
2
+
3
+// REQUIRES: swift_in_compiler
4
+// REQUIRES: executable_test
5
+// REQUIRES: optimized_stdlib
6
+// REQUIRES: OS=macosx || OS=linux-gnu
7
8
+enum Node {
9
+ indirect case inner(Node, Node)
10
+ case leaf(Int)
11
+}
12
13
+@main
14
+struct Main {
15
+ static func main() {
16
+ _ = [Node.leaf(42), Node.leaf(42)]
17
+ print("OK!")
18
+ // CHECK: OK!
19
+ }
20
0 commit comments