Files
swift-mirror/test/Interpreter/enum_runtime_alignment.swift
2017-08-08 15:22:14 -07:00

22 lines
400 B
Swift

// RUN: %target-run-simple-swift | %FileCheck %s
// REQUIRES: executable_test
// UNSUPPORTED: CPU=armv7
struct Structure {
var a: UInt8
var b: UInt8
var c: UInt8
}
enum Enum: Int {
case One, Two, Three, Four
}
var x: [Enum: (Structure?, Structure?)] = [
.One: (Structure(a: 1, b: 2, c: 3), nil)
]
// CHECK: [main.Enum.One: (Optional(main.Structure(a: 1, b: 2, c: 3)), nil)]
print(x)