Skip to content

Commit d8f1736

Browse files
authored
Merge pull request #15171 from gottesmm/pr-b0d81bf9ad3ca823d4fa9409fcf17fae87aa1595
[+0-all-args] Update plus zero tests.
2 parents 4c9ecf9 + 16484c9 commit d8f1736

File tree

211 files changed

+249
-33
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+249
-33
lines changed

test/ClangImporter/plus_zero_objc_ir.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %build-clang-importer-objc-overlays
45
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -emit-ir -g -o - -primary-file %s | %FileCheck %s

test/ClangImporter/plus_zero_optional.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -enable-sil-ownership -emit-silgen -o - %s | %FileCheck %s
34

45
// REQUIRES: objc_interop

test/ClangImporter/plus_zero_serialization-sil.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %target-swift-frontend -emit-module-path %t/Test.swiftmodule -emit-sil -o /dev/null -module-name Test %s -sdk "" -import-objc-header %S/Inputs/serialization-sil.h -enable-sil-ownership
45
// RUN: %target-sil-func-extractor %t/Test.swiftmodule -sil-print-debuginfo -func='$S4Test16testPartialApplyyySoAA_pF' -o - | %FileCheck %s

test/DebugInfo/plus_zero_closure-multivalue.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// rdar://problem/23727705:
34
// RUN-DISABLED: %target-swift-frontend -O %s -disable-llvm-optzns -emit-ir -g -o - | %FileCheck %s
45
import StdlibUnittest
@@ -36,8 +37,8 @@ demo()
3637
// Verify that a reabstraction thunk does not have a line number.
3738
// CHECK-O0-NOT: DW_OP_bit_piece
3839
// CHECK-O0-NOT: DW_OP_bit_piece
39-
// CHECK-O0: !DILocalVariable(name: "a", arg: 1{{.*}} line: 18,
40+
// CHECK-O0: !DILocalVariable(name: "a", arg: 1{{.*}} line: 19,
4041
// CHECK-O0-NOT: DW_OP_bit_piece
41-
// CHECK-O0: !DILocalVariable(name: "b", arg: 2{{.*}} line: 18,
42+
// CHECK-O0: !DILocalVariable(name: "b", arg: 2{{.*}} line: 19,
4243
// CHECK-O0-NOT: DW_OP_bit_piece
4344
// CHECK-O0: !DISubprogram(linkageName: "$SS2SSbs5Error_pIgggdzo_S2SSbsAA_pIegnndzo_TR",

test/DebugInfo/plus_zero_generic_args.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -primary-file %s -emit-ir -verify -g -o - | %FileCheck %s
34

45
func markUsed<T>(_ t: T) {}

test/DebugInfo/plus_zero_resilience.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
//
45
// Compile the external swift module.

test/IRGen/plus_zero_big_types_corner_cases.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -enable-large-loadable-types %s -emit-ir | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
34
// REQUIRES: optimized_stdlib
45
// UNSUPPORTED: resilient_stdlib

test/IRGen/plus_zero_builtins.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -parse-stdlib -primary-file %s -emit-ir -o - -disable-objc-attr-requires-foundation-module | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-runtime
34

45
// REQUIRES: CPU=x86_64

test/IRGen/plus_zero_class_bounded_generics.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-ir -primary-file %s -disable-objc-attr-requires-foundation-module | %FileCheck %s
34

45
// REQUIRES: CPU=x86_64

test/IRGen/plus_zero_enum_resilience.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %target-swift-frontend -emit-module -enable-resilience -emit-module-path=%t/resilient_struct.swiftmodule -module-name=resilient_struct %S/../Inputs/resilient_struct.swift
45
// RUN: %target-swift-frontend -emit-module -enable-resilience -emit-module-path=%t/resilient_enum.swiftmodule -module-name=resilient_enum -I %t %S/../Inputs/resilient_enum.swift

test/IRGen/plus_zero_generic_metatypes.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %swift -target x86_64-apple-macosx10.9 -emit-ir -parse-stdlib -primary-file %s | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-64 %s
34
// RUN: %swift -target i386-apple-ios7.0 -emit-ir -parse-stdlib -primary-file %s | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-32 %s
45
// RUN: %swift -target x86_64-apple-ios7.0 -emit-ir -parse-stdlib -primary-file %s | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-64 %s

test/IRGen/plus_zero_generic_metatypes_arm.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %swift -target armv7-apple-ios7.0 -module-name generic_metatypes -emit-ir -parse-stdlib -primary-file %s | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-32 %s
34
// RUN: %swift -target arm64-apple-ios7.0 -emit-ir -module-name generic_metatypes -parse-stdlib -primary-file %s | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-64 %s
45
// RUN: %swift -target armv7-apple-tvos9.0 -emit-ir -module-name generic_metatypes -parse-stdlib -primary-file %s | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-32 %s

test/IRGen/plus_zero_generic_tuples.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir -primary-file %s | %FileCheck %s
34

45
// Make sure that optimization passes don't choke on storage types for generic tuples

test/IRGen/plus_zero_keypaths.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// -- Convert <i32 0x...> constants to decimal constants that LLVM will print
45
// RUN: %utils/chex.py < %s > %t/keypaths.sil

test/IRGen/plus_zero_keypaths_objc.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %utils/chex.py < %s > %t/keypaths_objc.sil
45
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir %t/keypaths_objc.sil | %FileCheck %t/keypaths_objc.sil --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize

test/IRGen/plus_zero_lowered_optional_self_metadata.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -emit-ir %s
34
sil_stage canonical
45

test/IRGen/plus_zero_objc.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %build-irgen-test-overlays
45
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -primary-file %s -emit-ir -disable-objc-attr-requires-foundation-module | %FileCheck %s

test/IRGen/plus_zero_objc_retainAutoreleasedReturnValue.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.12 -assume-parsing-unqualified-ownership-sil -import-objc-header %S/Inputs/StaticInline.h %s -emit-ir | %FileCheck %s
34
// RUN: %target-swift-frontend -O -target x86_64-apple-macosx10.12 -assume-parsing-unqualified-ownership-sil -import-objc-header %S/Inputs/StaticInline.h %s -emit-ir | %FileCheck %s --check-prefix=OPT
45

test/IRGen/plus_zero_runtime_calling_conventions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -parse-as-library -emit-ir %s | %FileCheck %s
34
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -parse-as-library -O -emit-ir %s | %FileCheck --check-prefix=OPT-CHECK %s
45

test/IRGen/plus_zero_struct_resilience.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %target-swift-frontend -emit-module -enable-resilience -emit-module-path=%t/resilient_struct.swiftmodule -module-name=resilient_struct %S/../Inputs/resilient_struct.swift
45
// RUN: %target-swift-frontend -emit-module -enable-resilience -emit-module-path=%t/resilient_enum.swiftmodule -module-name=resilient_enum -I %t %S/../Inputs/resilient_enum.swift

test/Reflection/plus_zero_capture_descriptors.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// REQUIRES: no_asan
34
// RUN: %empty-directory(%t)
45
// RUN: %target-build-swift %s -emit-module -emit-library -module-name capture_descriptors -o %t/capture_descriptors.%target-dylib-extension

test/SIL/Parser/plus_zero_apply_with_substitution.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend %s -emit-silgen | %FileCheck %s
34

45
// rdar://14443287

test/SIL/Parser/plus_zero_bound_generic.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend %s -emit-silgen | %FileCheck %s
34

45
// rdar://14443287

test/SIL/Parser/plus_zero_generic_signature_with_depth.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend %s -emit-silgen | %target-sil-opt | %FileCheck %s
34

45
protocol mmGeneratorType {

test/SIL/Parser/plus_zero_keypath.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-sil-opt %s | %target-sil-opt | %FileCheck %s
34

45
sil_stage canonical

test/SIL/Serialization/plus_zero_deserialize_generic.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/def_generic.swift
45
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -linker -I %t %s | %FileCheck %s

test/SIL/Serialization/plus_zero_deserialize_generic_marker.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/def_generic_marker.swift
45
// RUN: %target-sil-opt -assume-parsing-unqualified-ownership-sil -linker -I %t %s | %FileCheck %s

test/SIL/Serialization/plus_zero_keypath.sil

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// First parse this and then emit a *.sib. Then read in the *.sib, then recreate
34
// RUN: %empty-directory(%t)
45
// RUN: %target-sil-opt %s -emit-sib -o %t/tmp.sib -module-name boxes

test/SILGen/plus_zero_access_marker_gen.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -parse-as-library -Xllvm -sil-full-demangle -enforce-exclusivity=checked -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
func modify<T>(_ x: inout T) {}

test/SILGen/plus_zero_accessors.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
// Hold a reference to do to magically become non-POD.

test/SILGen/plus_zero_address_only_types.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -enable-sil-ownership -parse-as-library -parse-stdlib -emit-silgen %s | %FileCheck %s
34

45
precedencegroup AssignmentPrecedence { assignment: true }

test/SILGen/plus_zero_addressors.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -emit-sil %s | %FileCheck %s
34
// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -emit-silgen %s | %FileCheck %s -check-prefix=SILGEN
45
// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -emit-ir %s

test/SILGen/plus_zero_apply_abstraction_nested.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -enable-sil-ownership -emit-silgen %s | %FileCheck %s
34

45
infix operator ~> { precedence 255 associativity left }

test/SILGen/plus_zero_argument_labels.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
public struct X { }

test/SILGen/plus_zero_argument_shuffle_swift3.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s -swift-version 3 | %FileCheck %s
34

45
func fn(_: Any) {}

test/SILGen/plus_zero_array_literal_abstraction.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s
34

45
// Verify that reabstraction happens when forming container literals.

test/SILGen/plus_zero_auto_closures.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -parse-stdlib -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
struct Bool {}

test/SILGen/plus_zero_borrow.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -emit-silgen %s | %FileCheck %s
34

45
import Swift

test/SILGen/plus_zero_boxed_existentials.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen %s | %FileCheck %s
34
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen %s | %FileCheck %s --check-prefix=GUARANTEED
45

test/SILGen/plus_zero_call_chain_reabstraction.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
struct A {

test/SILGen/plus_zero_capture_typed_boxes.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
func foo(_ x: Int) -> () -> Int {

test/SILGen/plus_zero_casts.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
class B { }

test/SILGen/plus_zero_cf.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -import-cf-types -sdk %S/Inputs %s -emit-silgen -o - | %FileCheck %s
34

45
// REQUIRES: objc_interop

test/SILGen/plus_zero_class_bound_protocols.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -parse-stdlib -parse-as-library -module-name Swift -emit-silgen %s | %FileCheck %s
34

45
enum Optional<T> {

test/SILGen/plus_zero_class_resilience.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %target-swift-frontend -emit-module -enable-resilience -emit-module-path=%t/resilient_struct.swiftmodule -module-name=resilient_struct %S/../Inputs/resilient_struct.swift
45
// RUN: %target-swift-frontend -emit-module -enable-resilience -emit-module-path=%t/resilient_class.swiftmodule -module-name=resilient_class -I %t %S/../Inputs/resilient_class.swift
5-
// RUN: %target-swift-frontend -I %t -emit-silgen -enable-sil-ownership -enable-resilience %s | %FileCheck %s
6+
// RUN: %target-swift-frontend -module-name class_resilience -I %t -emit-silgen -enable-sil-ownership -enable-resilience %s | %FileCheck %s
67

78
import resilient_class
89

test/SILGen/plus_zero_closures.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -parse-as-library -emit-silgen %s | %FileCheck %s
34
// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -parse-as-library -emit-silgen %s | %FileCheck %s --check-prefix=GUARANTEED
45

test/SILGen/plus_zero_collection_downcast.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s
34

45
// REQUIRES: objc_interop

test/SILGen/plus_zero_collection_subtype_downcast.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -sdk %S/Inputs %s | %FileCheck %s
34

45
struct S { var x, y: Int }

test/SILGen/plus_zero_collection_subtype_upcast.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -sdk %S/Inputs %s | %FileCheck %s
34

45
struct S { var x, y: Int }

test/SILGen/plus_zero_collection_upcast.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s
34

45
// FIXME: rdar://problem/19648117 Needs splitting objc parts out

test/SILGen/plus_zero_constrained_extensions.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -primary-file %s | %FileCheck %s
34
// RUN: %target-swift-frontend -emit-sil -O -primary-file %s > /dev/null
45
// RUN: %target-swift-frontend -emit-ir -primary-file %s > /dev/null

test/SILGen/plus_zero_default_arguments.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 %s | %FileCheck %s
34
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 %s | %FileCheck %s --check-prefix=NEGATIVE
45

5-
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 %s | %FileCheck %s
6-
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 %s | %FileCheck %s --check-prefix=NEGATIVE
6+
// RUN: %target-swift-frontend -module-name default_arguments -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 %s | %FileCheck %s
7+
// RUN: %target-swift-frontend -module-name default_arguments -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 %s | %FileCheck %s --check-prefix=NEGATIVE
8+
9+
// RUN: %target-swift-frontend -module-name default_arguments -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 %s | %FileCheck %s
10+
// RUN: %target-swift-frontend -module-name default_arguments -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 %s | %FileCheck %s --check-prefix=NEGATIVE
711

812
// __FUNCTION__ used as top-level parameter produces the module name.
913
// CHECK-LABEL: sil @main

test/SILGen/plus_zero_default_arguments_generic.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -swift-version 3 %s | %FileCheck %s
34
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -swift-version 4 %s | %FileCheck %s
45

test/SILGen/plus_zero_default_arguments_serialized.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %target-swift-frontend -emit-module-path %t/default_arguments_other.swiftmodule -emit-module -swift-version 4 -primary-file %S/Inputs/default_arguments_other.swift
45

5-
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 -I %t %s | %FileCheck %s --check-prefix=SWIFT3 --check-prefix=CHECK
6-
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 -I %t %s | %FileCheck %s --check-prefix=SWIFT4 --check-prefix=CHECK
6+
// RUN: %target-swift-frontend -module-name default_arguments_serialized -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 -I %t %s | %FileCheck %s --check-prefix=SWIFT3 --check-prefix=CHECK
7+
// RUN: %target-swift-frontend -module-name default_arguments_serialized -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 -I %t %s | %FileCheck %s --check-prefix=SWIFT4 --check-prefix=CHECK
78

8-
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-sil -O -swift-version 3 -I %t %s | %FileCheck %s --check-prefix=OPT
9-
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-sil -O -swift-version 4 -I %t %s | %FileCheck %s --check-prefix=OPT
9+
// RUN: %target-swift-frontend -module-name default_arguments_serialized -Xllvm -sil-full-demangle -enable-sil-ownership -emit-sil -O -swift-version 3 -I %t %s | %FileCheck %s --check-prefix=OPT
10+
// RUN: %target-swift-frontend -module-name default_arguments_serialized -Xllvm -sil-full-demangle -enable-sil-ownership -emit-sil -O -swift-version 4 -I %t %s | %FileCheck %s --check-prefix=OPT
1011

1112
// Check that default arguments are serialized in Swift 4 mode.
1213

test/SILGen/plus_zero_dependent_member_lowering.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
protocol P {

test/SILGen/plus_zero_downcast_reabstraction.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
34

45
// CHECK-LABEL: sil hidden @$S22downcast_reabstraction19condFunctionFromAnyyyypF

test/SILGen/plus_zero_dynamic.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %build-silgen-test-overlays
45

5-
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -Xllvm -sil-full-demangle -primary-file %s %S/Inputs/dynamic_other.swift -emit-silgen | %FileCheck %s
6-
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -Xllvm -sil-full-demangle -primary-file %s %S/Inputs/dynamic_other.swift -emit-sil -verify
6+
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -module-name dynamic -Xllvm -sil-full-demangle -primary-file %s %S/Inputs/dynamic_other.swift -emit-silgen | %FileCheck %s
7+
// RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -module-name dynamic -Xllvm -sil-full-demangle -primary-file %s %S/Inputs/dynamic_other.swift -emit-sil -verify
78

89
// REQUIRES: objc_interop
910

test/SILGen/plus_zero_dynamic_lookup.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %target-swift-frontend -parse-as-library -emit-silgen -disable-objc-attr-requires-foundation-module %s | %FileCheck %s
34
// RUN: %target-swift-frontend -parse-as-library -emit-silgen -disable-objc-attr-requires-foundation-module %s | %FileCheck %s --check-prefix=GUARANTEED
45

test/SILGen/plus_zero_dynamic_lookup_throws.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: plus_zero_runtime
2+
23
// RUN: %empty-directory(%t)
34
// RUN: %build-clang-importer-objc-overlays
45

0 commit comments

Comments
 (0)