Files
swift-mirror/test/IRGen/special_protocols.sil
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

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 }