Files
swift-mirror/test/IRGen/objc_class_empty_fields.swift
Michael Gottesman fd4828e40a Eliminate -assume-parsing-unqualified-ownership-sil from tests.
I am doing this separately from the actual change to eliminate the option to
make it easier to review.
2018-12-19 12:54:13 -08:00

29 lines
706 B
Swift

// RUN: %target-swift-frontend -primary-file %s -enable-objc-interop -emit-ir | %FileCheck %s --check-prefix=CHECK-%target-ptrsize
// SR-1055
// CHECK-64: @_DATA__TtC23objc_class_empty_fields14OneEnumWrapper = private constant { {{.*}}* } { i32 {{[0-9]+}}, i32 16, i32 24
// CHECK-32: @_DATA__TtC23objc_class_empty_fields14OneEnumWrapper = private constant { {{.*}}* } { i32 {{[0-9]+}}, i32 8, i32 12
enum OneCaseEnum {
case X
}
class OneEnumWrapper {
var myVar: OneCaseEnum
var whyVar: OneCaseEnum
var x: Int
init(v: OneCaseEnum)
{
self.myVar = v
self.whyVar = v
self.x = 0
}
}
let e = OneCaseEnum.X
print(e)
let x = OneEnumWrapper(v: e)
print(x)