Skip to content

Commit 477c7a6

Browse files
committed
Fix tests: remove platform specific entries
1 parent 710c6b8 commit 477c7a6

File tree

2 files changed

+1
-53
lines changed

2 files changed

+1
-53
lines changed

test/Frontend/module-alias-emit-sil-reingest.swift

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
/// Round trip test for SIL with module aliasing
22

3-
// REQUIRES: rdar84436250
4-
53
// RUN: %empty-directory(%t)
64
// RUN: %{python} %utils/split_file.py -o %t %s
75

@@ -16,7 +14,7 @@
1614

1715
/// Reingest the SIL file and verify it contains the same result
1816
// RUN: %target-sil-opt -enable-sil-verify-all %t/Bar-output1.sil -I %t -o %t/Bar-output2.sil
19-
// RUN: %FileCheck %s -input-file %t/Bar-output2.sil -check-prefix CHECK
17+
// RUN: %FileCheck %s -input-file %t/Bar-output2.sil
2018

2119
// CHECK: sil_stage canonical
2220

@@ -28,14 +26,6 @@
2826

2927
// CHECK: public func drink() -> Mild?
3028

31-
// CHECK: // main
32-
// CHECK: sil @main : $@convention(c) (Int32, UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>) -> Int32 {
33-
// CHECK: bb0(%0 : $Int32, %1 : $UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>):
34-
// CHECK: %2 = integer_literal $Builtin.Int32, 0 // user: %3
35-
// CHECK: %3 = struct $Int32 (%2 : $Builtin.Int32) // user: %4
36-
// CHECK: return %3 : $Int32 // id: %4
37-
// CHECK: } // end sil function 'main'
38-
3929
// CHECK: // drink()
4030
// CHECK: sil @$s4main5drink3Tea4MildVSgyF : $@convention(thin) () -> Optional<Mild> {
4131
// CHECK: bb0:

test/Frontend/module-alias-emit-sil.swift

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
///
33
/// Module 'Lib' imports module 'XLogging', and 'XLogging' is aliased 'AppleLogging'.
44

5-
// REQUIRES: rdar84436250
6-
75
// RUN: %empty-directory(%t)
86
// RUN: %{python} %utils/split_file.py -o %t %s
97

@@ -17,7 +15,6 @@
1715
// RUN: not %FileCheck %s -input-file %t/result-sil.output -check-prefix CHECK-NOT-FOUND
1816
// CHECK-NOT-FOUND: XLogging
1917

20-
2118
// CHECK: sil_stage canonical
2219

2320
// CHECK: import Builtin
@@ -35,34 +32,6 @@
3532

3633
// CHECK: public func end(_ arg: Logger)
3734

38-
// CHECK: // main
39-
// CHECK: sil @main : $@convention(c) (Int32, UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>) -> Int32 {
40-
// CHECK: bb0(%0 : $Int32, %1 : $UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>):
41-
// CHECK: %2 = integer_literal $Builtin.Int32, 0 // user: %3
42-
// CHECK: %3 = struct $Int32 (%2 : $Builtin.Int32) // user: %4
43-
// CHECK: return %3 : $Int32 // id: %4
44-
// CHECK: // end sil function 'main'
45-
46-
// CHECK: // MyLib.verbosity.getter
47-
// CHECK: sil @$s7FileLib02MyB0V9verbositySivg : $@convention(method) (MyLib) -> Int {
48-
// CHECK: // %0 "self" // user: %1
49-
// CHECK: bb0(%0 : $MyLib):
50-
// CHECK: debug_value %0 : $MyLib, let, name "self", argno 1, implicit // id: %1
51-
// CHECK: %2 = integer_literal $Builtin.Int64, 3 // user: %3
52-
// CHECK: %3 = struct $Int (%2 : $Builtin.Int64) // user: %4
53-
// CHECK: return %3 : $Int // id: %4
54-
// CHECK: } // end sil function '$s7FileLib02MyB0V9verbositySivg'
55-
56-
// CHECK: // Int.init(_builtinIntegerLiteral:)
57-
// CHECK: sil public_external [transparent] @$sSi22_builtinIntegerLiteralSiBI_tcfC : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int {
58-
// CHECK: // %0 // user: %2
59-
// CHECK: bb0(%0 : $Builtin.IntLiteral, %1 : $@thin Int.Type):
60-
// CHECK: %2 = builtin "s_to_s_checked_trunc_IntLiteral_Int64"(%0 : $Builtin.IntLiteral) : $(Builtin.Int64, Builtin.Int1) // user: %3
61-
// CHECK: %3 = tuple_extract %2 : $(Builtin.Int64, Builtin.Int1), 0 // user: %4
62-
// CHECK: %4 = struct $Int (%3 : $Builtin.Int64) // user: %5
63-
// CHECK: return %4 : $Int // id: %5
64-
// CHECK: } // end sil function '$sSi22_builtinIntegerLiteralSiBI_tcfC'
65-
6635
// CHECK: // protocol witness for Loggable.verbosity.getter in conformance MyLib
6736
// CHECK: sil shared [transparent] [thunk] @$s7FileLib02MyB0V12AppleLogging8LoggableAadEP9verbositySivgTW : $@convention(witness_method: Loggable) (@in_guaranteed MyLib) -> Int {
6837
// CHECK: // %0 // user: %1
@@ -90,19 +59,8 @@
9059

9160
// CHECK: // end(_:)
9261
// CHECK: sil @$s7FileLib3endyy12AppleLogging6LoggerVF : $@convention(thin) (Logger) -> () {
93-
// CHECK: // %0 "arg" // user: %1
94-
// CHECK: bb0(%0 : $Logger):
95-
// CHECK: debug_value %0 : $Logger, let, name "arg", argno 1 // id: %1
96-
// CHECK: %2 = tuple () // user: %3
97-
// CHECK: return %2 : $() // id: %3
9862
// CHECK: } // end sil function '$s7FileLib3endyy12AppleLogging6LoggerVF'
9963

100-
// CHECK: sil_witness_table MyLib: Loggable module FileLib {
101-
// CHECK: method #Loggable.verbosity!getter: <Self where Self : Loggable> (Self) -> () -> Int : @$s7FileLib02MyB0V12AppleLogging8LoggableAadEP9verbositySivgTW // protocol witness for Loggable.verbosity.getter in conformance MyLib
102-
// CHECK: }
103-
104-
// CHECK: sil_property #MyLib.verbosity ()
105-
10664

10765

10866
// BEGIN FileLogging.swift

0 commit comments

Comments
 (0)