Skip to content

Commit 52155fe

Browse files
committed
More Gates
1 parent 059c9cb commit 52155fe

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/IRGen/package_resilience.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
//
2+
// Unlike its counterparts in the other *_resilience.swift files, the goal is
3+
// for the package's component modules to all be considered within the same
4+
// resilience domain. This file ensures that we use direct access as much as
5+
// possible.
6+
//
7+
18
// RUN: %empty-directory(%t)
29
// RUN: %{python} %utils/chex.py < %s > %t/package_resilience.swift
310
// RUN: %target-swift-frontend -package-name MyPkg -emit-module -enable-library-evolution -emit-module-path=%t/resilient_struct.swiftmodule -module-name=resilient_struct %S/Inputs/package_types/resilient_struct.swift
@@ -7,6 +14,7 @@
714
// RUN: %target-swift-frontend -package-name MyPkg -disable-objc-interop -I %t -emit-ir -enable-library-evolution %t/package_resilience.swift | %FileCheck %t/package_resilience.swift --check-prefixes=CHECK,CHECK-native,CHECK-native%target-ptrsize,CHECK-%target-ptrsize,CHECK-%target-cpu,CHECK-native-STABLE-ABI-%target-mandates-stable-abi,CHECK-%target-sdk-name -DINT=i%target-ptrsize -D#MDWORDS=4 -D#MDSIZE32=40 -D#MDSIZE64=56 -D#WORDSIZE=%target-alignment
815
// RUN: %target-swift-frontend -package-name MyPkg -I %t -emit-ir -enable-library-evolution -O %t/package_resilience.swift -package-name MyPkg
916
// REQUIRES: objc_codegen
17+
// REQUIRES: OS=macosx || OS=ios || OS=tvos || OS=watchos
1018

1119
// CHECK: @"$s18package_resilience26ClassWithResilientPropertyC1p16resilient_struct5PointVvpWvd" = constant [[INT]] {{8|16}}, align [[#WORDSIZE]]
1220
// CHECK: @"$s18package_resilience26ClassWithResilientPropertyC1s16resilient_struct4SizeVvpWvd" = constant [[INT]] {{32|16}}, align [[#WORDSIZE]]

0 commit comments

Comments
 (0)