mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I am doing this separately from the actual change to eliminate the option to make it easier to review.
19 lines
895 B
Plaintext
19 lines
895 B
Plaintext
// 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 }
|