blob: 43df12010f8da12b6af606835848080975fa8c3a [file] [log] [blame]
// RUN: %target-swift-frontend %s -emit-ir -parse-stdlib -module-name Swift | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
public protocol Error {}
// CHECK: [[ERROR_NAME:@.*]] = private constant [6 x i8] c"Error\00"
// CHECK-LABEL: @"$ss5ErrorMp" = {{(dllexport )?}}{{(protected )?}}constant
// -- 0x0000_0047: special protocol 01, non-class, unique, protocol context
// CHECK-SAME: i32 327747,
// CHECK-SAME: i32{{.*}}@"$ssMXM"
// CHECK-SAME: i32{{.*}}[[ERROR_NAME]]
// CHECK-SAME: i32 0, i32 0, i32 0 }
public protocol PlainOldProtocol {}
// CHECK-LABEL: @"$ss16PlainOldProtocolMp" = {{(dllexport )?}}{{(protected )?}}constant
// -- 0x0000_0007: no special protocol, non-class, unique, protocol context
// CHECK-SAME: i32 65603,
// CHECK-SAME: i32 0,
// CHECK-SAME: i32 0 }