Skip to content

Fix tests: remove platform specific entries #39819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions test/Frontend/module-alias-emit-sil-reingest.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/// Round trip test for SIL with module aliasing

// REQUIRES: rdar84436250

// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s

Expand All @@ -16,7 +14,7 @@

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

// CHECK: sil_stage canonical

Expand All @@ -28,14 +26,6 @@

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

// CHECK: // main
// CHECK: sil @main : $@convention(c) (Int32, UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>) -> Int32 {
// CHECK: bb0(%0 : $Int32, %1 : $UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>):
// CHECK: %2 = integer_literal $Builtin.Int32, 0 // user: %3
// CHECK: %3 = struct $Int32 (%2 : $Builtin.Int32) // user: %4
// CHECK: return %3 : $Int32 // id: %4
// CHECK: } // end sil function 'main'

// CHECK: // drink()
// CHECK: sil @$s4main5drink3Tea4MildVSgyF : $@convention(thin) () -> Optional<Mild> {
// CHECK: bb0:
Expand Down
42 changes: 0 additions & 42 deletions test/Frontend/module-alias-emit-sil.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
///
/// Module 'Lib' imports module 'XLogging', and 'XLogging' is aliased 'AppleLogging'.

// REQUIRES: rdar84436250

// RUN: %empty-directory(%t)
// RUN: %{python} %utils/split_file.py -o %t %s

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


// CHECK: sil_stage canonical

// CHECK: import Builtin
Expand All @@ -35,34 +32,6 @@

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

// CHECK: // main
// CHECK: sil @main : $@convention(c) (Int32, UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>) -> Int32 {
// CHECK: bb0(%0 : $Int32, %1 : $UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>):
// CHECK: %2 = integer_literal $Builtin.Int32, 0 // user: %3
// CHECK: %3 = struct $Int32 (%2 : $Builtin.Int32) // user: %4
// CHECK: return %3 : $Int32 // id: %4
// CHECK: // end sil function 'main'

// CHECK: // MyLib.verbosity.getter
// CHECK: sil @$s7FileLib02MyB0V9verbositySivg : $@convention(method) (MyLib) -> Int {
// CHECK: // %0 "self" // user: %1
// CHECK: bb0(%0 : $MyLib):
// CHECK: debug_value %0 : $MyLib, let, name "self", argno 1, implicit // id: %1
// CHECK: %2 = integer_literal $Builtin.Int64, 3 // user: %3
// CHECK: %3 = struct $Int (%2 : $Builtin.Int64) // user: %4
// CHECK: return %3 : $Int // id: %4
// CHECK: } // end sil function '$s7FileLib02MyB0V9verbositySivg'

// CHECK: // Int.init(_builtinIntegerLiteral:)
// CHECK: sil public_external [transparent] @$sSi22_builtinIntegerLiteralSiBI_tcfC : $@convention(method) (Builtin.IntLiteral, @thin Int.Type) -> Int {
// CHECK: // %0 // user: %2
// CHECK: bb0(%0 : $Builtin.IntLiteral, %1 : $@thin Int.Type):
// CHECK: %2 = builtin "s_to_s_checked_trunc_IntLiteral_Int64"(%0 : $Builtin.IntLiteral) : $(Builtin.Int64, Builtin.Int1) // user: %3
// CHECK: %3 = tuple_extract %2 : $(Builtin.Int64, Builtin.Int1), 0 // user: %4
// CHECK: %4 = struct $Int (%3 : $Builtin.Int64) // user: %5
// CHECK: return %4 : $Int // id: %5
// CHECK: } // end sil function '$sSi22_builtinIntegerLiteralSiBI_tcfC'

// CHECK: // protocol witness for Loggable.verbosity.getter in conformance MyLib
// CHECK: sil shared [transparent] [thunk] @$s7FileLib02MyB0V12AppleLogging8LoggableAadEP9verbositySivgTW : $@convention(witness_method: Loggable) (@in_guaranteed MyLib) -> Int {
// CHECK: // %0 // user: %1
Expand Down Expand Up @@ -90,19 +59,8 @@

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

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

// CHECK: sil_property #MyLib.verbosity ()



// BEGIN FileLogging.swift
Expand Down