Files
swift-mirror/test/Interpreter/enum_runtime_alignment.swift
2017-08-15 13:43:57 -07:00

21 lines
374 B
Swift

// RUN: %target-run-simple-swift | %FileCheck %s
// REQUIRES: executable_test
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)