Skip to content

[+0-all-args] Be explicit about the module-name for tests that have p… #15165

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
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
2 changes: 1 addition & 1 deletion test/SILGen/access_marker_gen.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -parse-as-library -Xllvm -sil-full-demangle -enforce-exclusivity=checked -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name access_marker_gen -parse-as-library -Xllvm -sil-full-demangle -enforce-exclusivity=checked -emit-silgen -enable-sil-ownership %s | %FileCheck %s

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

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/accessors.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name accessors -Xllvm -sil-full-demangle -emit-silgen -enable-sil-ownership %s | %FileCheck %s

// Hold a reference to do to magically become non-POD.
class Reference {}
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/address_only_types.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -enable-sil-ownership -parse-as-library -parse-stdlib -emit-silgen %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name address_only_types -enable-sil-ownership -parse-as-library -parse-stdlib -emit-silgen %s | %FileCheck %s

precedencegroup AssignmentPrecedence { assignment: true }

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/argument_labels.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name argument_labels -emit-silgen -enable-sil-ownership %s | %FileCheck %s

public struct X { }
public struct Y { }
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/argument_shuffle_swift3.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s -swift-version 3 | %FileCheck %s
// RUN: %target-swift-frontend -module-name argument_shuffle_swift3 -emit-silgen -enable-sil-ownership %s -swift-version 3 | %FileCheck %s

func fn(_: Any) {}

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/array_literal_abstraction.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name array_literal_abstraction -emit-silgen %s | %FileCheck %s

// Verify that reabstraction happens when forming container literals.
// <rdar://problem/16039286>
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/auto_closures.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -parse-stdlib -emit-silgen %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name auto_closures -parse-stdlib -emit-silgen %s | %FileCheck %s

struct Bool {}
var false_ = Bool()
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/borrow.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -emit-silgen %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name borrow -enable-sil-ownership -parse-stdlib -emit-silgen %s | %FileCheck %s

import Swift

Expand Down
4 changes: 2 additions & 2 deletions test/SILGen/boxed_existentials.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen %s | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen %s | %FileCheck %s --check-prefix=GUARANTEED
// RUN: %target-swift-frontend -module-name boxed_existentials -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name boxed_existentials -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen %s | %FileCheck %s --check-prefix=GUARANTEED

func test_type_lowering(_ x: Error) { }
// CHECK-LABEL: sil hidden @$S18boxed_existentials18test_type_loweringyys5Error_pF : $@convention(thin) (@owned Error) -> () {
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/call_chain_reabstraction.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name call_chain_reabstraction -emit-silgen -enable-sil-ownership %s | %FileCheck %s

struct A {
func g<U>(_ recur: (A, U) -> U) -> (A, U) -> U {
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/capture_typed_boxes.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name capture_typed_boxes -emit-silgen -enable-sil-ownership %s | %FileCheck %s

func foo(_ x: Int) -> () -> Int {
var x = x
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/casts.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name casts -emit-silgen -enable-sil-ownership %s | %FileCheck %s

class B { }
class D : B { }
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/cf.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -import-cf-types -sdk %S/Inputs %s -emit-silgen -o - | %FileCheck %s
// RUN: %target-swift-frontend -module-name cf -import-cf-types -sdk %S/Inputs %s -emit-silgen -o - | %FileCheck %s

// REQUIRES: objc_interop

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/class_resilience.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -enable-resilience -emit-module-path=%t/resilient_struct.swiftmodule -module-name=resilient_struct %S/../Inputs/resilient_struct.swift
// 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
// RUN: %target-swift-frontend -I %t -emit-silgen -enable-sil-ownership -enable-resilience %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name class_resilience -I %t -emit-silgen -enable-sil-ownership -enable-resilience %s | %FileCheck %s

import resilient_class

Expand Down
4 changes: 2 additions & 2 deletions test/SILGen/closures.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -parse-as-library -emit-silgen %s | %FileCheck %s
// RUN: %target-swift-frontend -enable-sil-ownership -parse-stdlib -parse-as-library -emit-silgen %s | %FileCheck %s --check-prefix=GUARANTEED
// RUN: %target-swift-frontend -module-name closures -enable-sil-ownership -parse-stdlib -parse-as-library -emit-silgen %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name closures -enable-sil-ownership -parse-stdlib -parse-as-library -emit-silgen %s | %FileCheck %s --check-prefix=GUARANTEED

import Swift

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/collection_downcast.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name collection_downcast -emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s

// REQUIRES: objc_interop

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/collection_subtype_downcast.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -sdk %S/Inputs %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name collection_subtype_downcast -emit-silgen -enable-sil-ownership -sdk %S/Inputs %s | %FileCheck %s

struct S { var x, y: Int }

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/collection_subtype_upcast.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -sdk %S/Inputs %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name collection_subtype_upcast -emit-silgen -enable-sil-ownership -sdk %S/Inputs %s | %FileCheck %s

struct S { var x, y: Int }

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/collection_upcast.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name collection_upcast -emit-silgen -sdk %S/Inputs -I %S/Inputs -enable-source-import %s | %FileCheck %s

// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// XFAIL: linux
Expand Down
6 changes: 3 additions & 3 deletions test/SILGen/constrained_extensions.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -primary-file %s | %FileCheck %s
// RUN: %target-swift-frontend -emit-sil -O -primary-file %s > /dev/null
// RUN: %target-swift-frontend -emit-ir -primary-file %s > /dev/null
// RUN: %target-swift-frontend -module-name constrained_extensions -emit-silgen -enable-sil-ownership -primary-file %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name constrained_extensions -emit-sil -O -primary-file %s > /dev/null
// RUN: %target-swift-frontend -module-name constrained_extensions -emit-ir -primary-file %s > /dev/null

extension Array where Element == Int {
// CHECK-LABEL: sil @$SSa22constrained_extensionsSiRszlE1xSaySiGyt_tcfC : $@convention(method) (@thin Array<Int>.Type) -> @owned Array<Int>
Expand Down
8 changes: 4 additions & 4 deletions test/SILGen/default_arguments.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 %s | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 %s | %FileCheck %s --check-prefix=NEGATIVE
// RUN: %target-swift-frontend -module-name default_arguments -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 3 %s | %FileCheck %s
// 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

// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 %s | %FileCheck %s
// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 %s | %FileCheck %s --check-prefix=NEGATIVE
// RUN: %target-swift-frontend -module-name default_arguments -Xllvm -sil-full-demangle -enable-sil-ownership -emit-silgen -swift-version 4 %s | %FileCheck %s
// 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

// __FUNCTION__ used as top-level parameter produces the module name.
// CHECK-LABEL: sil @main
Expand Down
4 changes: 2 additions & 2 deletions test/SILGen/default_arguments_generic.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -swift-version 3 %s | %FileCheck %s
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -swift-version 4 %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name default_arguments_generic -emit-silgen -enable-sil-ownership -swift-version 3 %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name default_arguments_generic -emit-silgen -enable-sil-ownership -swift-version 4 %s | %FileCheck %s

func foo<T: ExpressibleByIntegerLiteral>(_: T.Type, x: T = 0) { }

Expand Down
8 changes: 4 additions & 4 deletions test/SILGen/default_arguments_serialized.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
// RUN: %empty-directory(%t)
// 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

// 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
// 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
// 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
// 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

// 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
// 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
// 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
// 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

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

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/dependent_member_lowering.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name dependent_member_lowering -emit-silgen -enable-sil-ownership %s | %FileCheck %s

protocol P {
associatedtype A
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/downcast_reabstraction.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name downcast_reabstraction -emit-silgen -enable-sil-ownership %s | %FileCheck %s

// CHECK-LABEL: sil hidden @$S22downcast_reabstraction19condFunctionFromAnyyyypF
// CHECK: checked_cast_addr_br take_always Any in [[IN:%.*]] : $*Any to () -> () in [[OUT:%.*]] : $*@callee_guaranteed (@in ()) -> @out (), [[YES:bb[0-9]+]], [[NO:bb[0-9]+]]
Expand Down
4 changes: 2 additions & 2 deletions test/SILGen/dynamic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
// RUN: %empty-directory(%t)
// RUN: %build-silgen-test-overlays

// 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
// 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
// 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
// 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

// REQUIRES: objc_interop

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/enum_resilience.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -enable-resilience -emit-module-path=%t/resilient_struct.swiftmodule -module-name=resilient_struct %S/../Inputs/resilient_struct.swift
// 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
// RUN: %target-swift-frontend -I %t -enable-sil-ownership -emit-silgen -enable-resilience %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name enum_resilience -I %t -enable-sil-ownership -emit-silgen -enable-resilience %s | %FileCheck %s

import resilient_enum

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/existential_erasure.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name existential_erasure -emit-silgen -enable-sil-ownership %s | %FileCheck %s

protocol P {
func downgrade(_ m68k: Bool) -> Self
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/expressions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// RUN: %empty-directory(%t)
// RUN: echo "public var x = Int()" | %target-swift-frontend -module-name FooBar -emit-module -o %t -
// RUN: %target-swift-frontend -parse-stdlib -emit-silgen -enable-sil-ownership %s -I%t -disable-access-control | %FileCheck %s
// RUN: %target-swift-frontend -parse-stdlib -module-name expressions -emit-silgen -enable-sil-ownership %s -I%t -disable-access-control | %FileCheck %s

import Swift
import FooBar
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/extensions_objc.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -sdk %S/Inputs %s -I %S/Inputs -enable-source-import -emit-silgen -enable-sil-ownership | %FileCheck %s
// RUN: %target-swift-frontend -module-name extensions_objc -sdk %S/Inputs %s -I %S/Inputs -enable-source-import -emit-silgen -enable-sil-ownership | %FileCheck %s
//
// REQUIRES: objc_interop

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/final.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name final -emit-silgen -enable-sil-ownership %s | %FileCheck %s

class TestClass {

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/force_cast_chained_optional.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name force_cast_chained_optional -emit-silgen -enable-sil-ownership %s | %FileCheck %s

class Foo {
var bar: Bar!
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/foreach.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name foreach -emit-silgen -enable-sil-ownership %s | %FileCheck %s

//////////////////
// Declarations //
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/foreign_errors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// RUN: %empty-directory(%t)
// RUN: %build-clang-importer-objc-overlays
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-silgen -parse-as-library %s | %FileCheck %s
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -module-name foreign_errors -emit-silgen -parse-as-library %s | %FileCheck %s

// REQUIRES: objc_interop

Expand Down
4 changes: 2 additions & 2 deletions test/SILGen/function_conversion.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership -primary-file %s | %FileCheck %s
// RUN: %target-swift-frontend -emit-ir -enable-sil-ownership -primary-file %s
// RUN: %target-swift-frontend -module-name function_conversion -emit-silgen -enable-sil-ownership -primary-file %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name function_conversion -emit-ir -enable-sil-ownership -primary-file %s

// Check SILGen against various FunctionConversionExprs emitted by Sema.

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/function_conversion_objc.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -sdk %S/Inputs %s -I %S/Inputs -enable-sil-ownership -enable-source-import -emit-silgen -verify | %FileCheck %s
// RUN: %target-swift-frontend -module-name function_conversion_objc -sdk %S/Inputs %s -I %S/Inputs -enable-sil-ownership -enable-source-import -emit-silgen -verify | %FileCheck %s

import Foundation

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/functions.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -parse-stdlib -parse-as-library -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name functions -Xllvm -sil-full-demangle -parse-stdlib -parse-as-library -emit-silgen -enable-sil-ownership %s | %FileCheck %s

import Swift // just for Optional

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/generic_casts.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -Xllvm -sil-full-demangle -emit-silgen -enable-sil-ownership %s | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-%target-runtime %s
// RUN: %target-swift-frontend -module-name generic_casts -Xllvm -sil-full-demangle -emit-silgen -enable-sil-ownership %s | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-%target-runtime %s

protocol ClassBound : class {}
protocol NotClassBound {}
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/generic_closures.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -parse-stdlib -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name generic_closures -parse-stdlib -emit-silgen -enable-sil-ownership %s | %FileCheck %s

import Swift

Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/generic_property_base_lifetime.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen %s -disable-objc-attr-requires-foundation-module -enable-sil-ownership | %FileCheck %s
// RUN: %target-swift-frontend -module-name generic_property_base_lifetime -emit-silgen %s -disable-objc-attr-requires-foundation-module -enable-sil-ownership | %FileCheck %s

protocol ProtocolA: class {
var intProp: Int { get set }
Expand Down
2 changes: 1 addition & 1 deletion test/SILGen/generic_tuples.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -parse-as-library -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name generic_tuples -emit-silgen -parse-as-library -enable-sil-ownership %s | %FileCheck %s


func dup<T>(_ x: T) -> (T, T) { return (x,x) }
Expand Down
4 changes: 2 additions & 2 deletions test/SILGen/generic_witness.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// REQUIRES: plus_one_runtime

// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -emit-ir -enable-sil-ownership %s
// RUN: %target-swift-frontend -module-name generic_witness -emit-silgen -enable-sil-ownership %s | %FileCheck %s
// RUN: %target-swift-frontend -module-name generic_witness -emit-ir -enable-sil-ownership %s

protocol Runcible {
func runce<A>(_ x: A)
Expand Down
Loading