blob: 9e1bc838977d47cbe528a18111a9dcf47fc8d4cb [file] [log] [blame]
// RUN: %swift -target thumbv7--windows-itanium -parse-stdlib -parse-as-library -module-name Swift -O -emit-ir %s -o - | %FileCheck %s
// REQUIRES: CODEGENERATOR=ARM
precedencegroup AssignmentPrecedence {
assignment: true
}
public enum Optional<Wrapped> {
case none
case some(Wrapped)
}
public protocol P {
associatedtype T
}
public struct S : P {
public typealias T = Optional<S>
}
var gg = S()
public func f(s : S) -> (() -> ()) {
return { gg = s }
}
// CHECK-DAG: @"\01l__swift3_reflection_descriptor" = private constant {{.*}}, section ".sw3cptr$B"
// CHECK-DAG: @{{[0-9]+}} = private constant [3 x i8] c"Sq\00", section ".sw3tyrf$B"
// CHECK-DAG: @{{[0-9]+}} = private constant [5 x i8] c"none\00", section ".sw3rfst$B"
// CHECK-DAG: @{{[0-9]+}} = private constant [5 x i8] c"some\00", section ".sw3rfst$B"
// CHECK-DAG: @_T0SqMF = internal constant {{.*}}, section ".sw3flmd$B"
// CHECK-DAG: @_T0s1SVs1PsMA = internal constant {{.*}}, section ".sw3asty$B"
// CHECK-DAG: @_T0BoMB = internal constant {{.*}}, section ".sw3bltn$B"