Files
swift-mirror/test/SIL/Parser/enum_in_class.sil
Joe Groff c0a2994564 AST: Start printing function types with @convention instead of old attributes.
And update tests to match.

Swift SVN r27262
2015-04-13 22:51:34 +00:00

23 lines
510 B
Plaintext

// RUN: %target-swift-frontend %s -emit-silgen | FileCheck %s
// rdar://16764223
sil_stage raw
import Builtin
import Swift
class Task {
enum State {
case Bits(UInt8)
}
}
// CHECK: @test_declref_enum
sil [transparent] @test_declref_enum : $@convention(thin) (UInt8, @thin Task.State.Type) -> Task.State {
bb0(%0 : $UInt8, %1 : $@thin Task.State.Type):
// CHECK: enum $Task.State, #Task.State.Bits!enumelt
%2 = enum $Task.State, #Task.State.Bits!enumelt.1, %0 : $UInt8
return %2 : $Task.State
}