mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[embedded] Centralize the OS/target requirements on (most) Embedded Swift tests
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
import Builtin
|
import Builtin
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct MyStruct {
|
public struct MyStruct {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
enum Node {
|
enum Node {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
@main
|
@main
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
class MyClass {
|
class MyClass {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-emit-sil %s -enable-experimental-feature Embedded -wmo | %FileCheck %s
|
// RUN: %target-swift-emit-sil %s -enable-experimental-feature Embedded -wmo | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// CHECK: sil @$e4main1XC3fooxyFSi_Tg5 : $@convention(method) (@guaranteed X<Int>) -> Int {
|
// CHECK: sil @$e4main1XC3fooxyFSi_Tg5 : $@convention(method) (@guaranteed X<Int>) -> Int {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
class Foo {
|
class Foo {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public class MyClass {
|
public class MyClass {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
class MyClass {
|
class MyClass {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public class MyClass {
|
public class MyClass {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
// REQUIRES: swift_feature_Extern
|
// REQUIRES: swift_feature_Extern
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading
|
// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// BEGIN header.h
|
// BEGIN header.h
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading
|
// RUN: %target-swift-frontend -I %t %t/Main.swift -enable-experimental-feature Embedded -cxx-interoperability-mode=default -c -o %t/a.o -Rmodule-loading
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// BEGIN header.h
|
// BEGIN header.h
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct MyType {
|
public struct MyType {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func foo<T>(_ array: inout [T]) {
|
public func foo<T>(_ array: inout [T]) {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
class C {}
|
class C {}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public var global_c: C? = nil
|
public var global_c: C? = nil
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64
|
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64
|
||||||
|
|
||||||
// REQUIRES: rdar121923818
|
// REQUIRES: rdar121923818
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
// REQUIRES: swift_feature_Extern
|
// REQUIRES: swift_feature_Extern
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// RUN: %target-swift-emit-ir -Osize %s -enable-experimental-feature Embedded -wmo
|
// RUN: %target-swift-emit-ir -Osize %s -enable-experimental-feature Embedded -wmo
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
@available(SwiftStdlib 5.7, *)
|
@available(SwiftStdlib 5.7, *)
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -parse-as-library -module-name main | %FileCheck %s
|
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -parse-as-library -module-name main | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
class MyClass {
|
class MyClass {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
protocol ClassBound: AnyObject {
|
protocol ClassBound: AnyObject {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
protocol ClassBound: AnyObject {
|
protocol ClassBound: AnyObject {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
protocol ClassBound: AnyObject {
|
protocol ClassBound: AnyObject {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
protocol ClassBound: AnyObject {
|
protocol ClassBound: AnyObject {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public var global: AnyObject? = nil
|
public var global: AnyObject? = nil
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public protocol P: AnyObject {
|
public protocol P: AnyObject {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// RUN: %target-swift-frontend -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o
|
// RUN: %target-swift-frontend -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// BEGIN MyModule.swift
|
// BEGIN MyModule.swift
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
protocol ClassBound: AnyObject {
|
protocol ClassBound: AnyObject {
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
// RUN: %target-swift-emit-ir -parse-as-library -module-name main -verify %s -enable-experimental-feature Embedded -wmo
|
// RUN: %target-swift-emit-ir -parse-as-library -module-name main -verify %s -enable-experimental-feature Embedded -wmo
|
||||||
|
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
protocol ClassBound: AnyObject {
|
protocol ClassBound: AnyObject {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s
|
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func test() {
|
public func test() {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: CODEGENERATOR=ARM
|
// REQUIRES: CODEGENERATOR=ARM
|
||||||
// REQUIRES: embedded_stdlib_cross_compiling
|
// REQUIRES: embedded_stdlib_cross_compiling
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func foo() -> [Int] {
|
public func foo() -> [Int] {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
// RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
||||||
// RUN: %target-swift-frontend -target arm64-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
// RUN: %target-swift-frontend -target arm64-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: CODEGENERATOR=ARM
|
// REQUIRES: CODEGENERATOR=ARM
|
||||||
// REQUIRES: embedded_stdlib_cross_compiling
|
// REQUIRES: embedded_stdlib_cross_compiling
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// RUN: %target-swift-frontend -enable-experimental-feature Extern -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
|
// RUN: %target-swift-frontend -enable-experimental-feature Extern -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
|
||||||
// RUN: %target-swift-frontend -enable-experimental-feature Extern -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o
|
// RUN: %target-swift-frontend -enable-experimental-feature Extern -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o
|
||||||
|
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
// REQUIRES: swift_feature_Extern
|
// REQUIRES: swift_feature_Extern
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
protocol Fooable {
|
protocol Fooable {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
class B<T> {
|
class B<T> {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
// RUN: %target-swift-frontend -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
|
// RUN: %target-swift-frontend -emit-module -o %t/MyModule.swiftmodule %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
|
||||||
// RUN: %target-swift-frontend -c -o %t/Main.o -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library
|
// RUN: %target-swift-frontend -c -o %t/Main.o -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library
|
||||||
|
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// BEGIN MyModule.swift
|
// BEGIN MyModule.swift
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct FooError: Error {}
|
public struct FooError: Error {}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct FooError: Error {}
|
public struct FooError: Error {}
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct FooError: Error {}
|
public struct FooError: Error {}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s
|
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
@propertyWrapper
|
@propertyWrapper
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
struct MyStruct {
|
struct MyStruct {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
@dynamicMemberLookup
|
@dynamicMemberLookup
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
@dynamicMemberLookup
|
@dynamicMemberLookup
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func foo() {
|
public func foo() {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
@main
|
@main
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
# Make a local copy of the substitutions.
|
# Make a local copy of the substitutions.
|
||||||
config.substitutions = list(config.substitutions)
|
config.substitutions = list(config.substitutions)
|
||||||
|
|
||||||
|
# A handful of test setup tweaks that we want for *all* Embedded Swift tests (i.e. all tests in this directory):
|
||||||
|
|
||||||
|
# (1) When targeting macOS, raise the deployment target to macOS 14.0 (from the default 13.0)
|
||||||
if config.target_sdk_name == 'macosx':
|
if config.target_sdk_name == 'macosx':
|
||||||
def do_fixup(key, value):
|
def do_fixup(key, value):
|
||||||
if isinstance(value, str):
|
if isinstance(value, str):
|
||||||
@@ -11,9 +14,17 @@ if config.target_sdk_name == 'macosx':
|
|||||||
|
|
||||||
config.substitutions = [do_fixup(a, b) for (a, b) in config.substitutions]
|
config.substitutions = [do_fixup(a, b) for (a, b) in config.substitutions]
|
||||||
|
|
||||||
|
# (2) If building embedded stdlib is off (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB in CMake), make all tests unsupported
|
||||||
if 'embedded_stdlib' not in config.available_features:
|
if 'embedded_stdlib' not in config.available_features:
|
||||||
config.unsupported = True
|
config.unsupported = True
|
||||||
|
|
||||||
|
# (3) Restrict Embedded Swift tests only to the currently supported set of test target OS's, skip them otherwise.
|
||||||
|
supported_test_os_list = ["OS=macosx", "OS=linux-gnu", "OS=none-eabi", "OS=none-elf"]
|
||||||
|
if config.available_features.intersection(set(supported_test_os_list)) == set():
|
||||||
|
config.unsupported = True
|
||||||
|
|
||||||
|
# (4) Use the new Swift driver (swift-driver), instead of the legacy C++ Swift driver (which is unfortunately what
|
||||||
|
# standard Swift lit tests still use by default).
|
||||||
config.environment = dict(config.environment)
|
config.environment = dict(config.environment)
|
||||||
if 'SWIFT_USE_OLD_DRIVER' in config.environment: del config.environment['SWIFT_USE_OLD_DRIVER']
|
if 'SWIFT_USE_OLD_DRIVER' in config.environment: del config.environment['SWIFT_USE_OLD_DRIVER']
|
||||||
if 'SWIFT_AVOID_WARNING_USING_OLD_DRIVER' in config.environment: del config.environment['SWIFT_AVOID_WARNING_USING_OLD_DRIVER']
|
if 'SWIFT_AVOID_WARNING_USING_OLD_DRIVER' in config.environment: del config.environment['SWIFT_AVOID_WARNING_USING_OLD_DRIVER']
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s
|
// RUN: %target-swift-emit-ir %s -module-name=main -enable-experimental-feature Embedded | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// CHECK: @"$e4main8MyBufferCN" = {{.*global.*}} <{ ptr @"$es13ManagedBufferCySis5UInt8VGN", ptr @"$e4main8MyBufferCfD{{[^"]*}}", ptr null, ptr @"$e4main8MyBufferC12_doNotCallMeACyt_tcfC{{[^"]*}}" }>
|
// CHECK: @"$e4main8MyBufferCN" = {{.*global.*}} <{ ptr @"$es13ManagedBufferCySis5UInt8VGN", ptr @"$e4main8MyBufferCfD{{[^"]*}}", ptr null, ptr @"$e4main8MyBufferC12_doNotCallMeACyt_tcfC{{[^"]*}}" }>
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct AsyncStream2<Element> {
|
public struct AsyncStream2<Element> {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// BEGIN MyModule.swift
|
// BEGIN MyModule.swift
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func sink<T>(t: T) {}
|
public func sink<T>(t: T) {}
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct MyStruct {
|
public struct MyStruct {
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
//--- MyModuleA.swift
|
//--- MyModuleA.swift
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// RUN: %target-swift-frontend -enable-experimental-feature Extern -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o
|
// RUN: %target-swift-frontend -enable-experimental-feature Extern -c -I %t %t/Main.swift -enable-experimental-feature Embedded -o %t/a.o
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
// REQUIRES: swift_feature_Extern
|
// REQUIRES: swift_feature_Extern
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
// RUN: %target-swift-frontend -emit-ir -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library | %FileCheck %s
|
// RUN: %target-swift-frontend -emit-ir -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// Dependencies look like this:
|
// Dependencies look like this:
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// RUN: %target-swift-frontend -emit-ir -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library | %FileCheck %s
|
// RUN: %target-swift-frontend -emit-ir -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// BEGIN MyModule.swift
|
// BEGIN MyModule.swift
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: CODEGENERATOR=ARM
|
// REQUIRES: CODEGENERATOR=ARM
|
||||||
// REQUIRES: embedded_stdlib_cross_compiling
|
// REQUIRES: embedded_stdlib_cross_compiling
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func staticstring() -> StaticString {
|
public func staticstring() -> StaticString {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -O -parse-as-library -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop) | %FileCheck %s
|
// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -O -parse-as-library -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop) | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
var deinitCalled = false
|
var deinitCalled = false
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-emit-ir %s -DIGNORE_FAILS -enable-experimental-feature Embedded -wmo -o /dev/null
|
// RUN: %target-swift-emit-ir %s -DIGNORE_FAILS -enable-experimental-feature Embedded -wmo -o /dev/null
|
||||||
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -wmo -verify
|
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -wmo -verify
|
||||||
|
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
struct MyStruct<Item> : ~Copyable {
|
struct MyStruct<Item> : ~Copyable {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct MyStructA {
|
public struct MyStructA {
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
struct ShippingOptions: OptionSet {
|
struct ShippingOptions: OptionSet {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-emit-ir -Osize %s -enable-experimental-feature Embedded | %FileCheck %s
|
// RUN: %target-swift-emit-ir -Osize %s -enable-experimental-feature Embedded | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func foo<T>(n: T) {
|
public func foo<T>(n: T) {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func foo() {
|
public func foo() {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// RUN: %target-swift-frontend -enable-import-ptrauth-field-function-pointers -O -emit-ir %t/Main.swift -enable-experimental-feature Embedded -import-objc-header %t/header.h | %FileCheck %s
|
// RUN: %target-swift-frontend -enable-import-ptrauth-field-function-pointers -O -emit-ir %t/Main.swift -enable-experimental-feature Embedded -import-objc-header %t/header.h | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: CPU=arm64e
|
// REQUIRES: CPU=arm64e
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
// RUN: %target-swift-frontend -O -emit-ir %t/Main.swift -I%t -enable-experimental-feature Embedded -import-objc-header %t/header.h
|
// RUN: %target-swift-frontend -O -emit-ir %t/Main.swift -I%t -enable-experimental-feature Embedded -import-objc-header %t/header.h
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: CPU=arm64e
|
// REQUIRES: CPU=arm64e
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
@main
|
@main
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
// REQUIRES: swift_feature_Extern
|
// REQUIRES: swift_feature_Extern
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
// RUN: %target-swift-frontend -Osize -emit-ir %t/Main.swift -I%t -enable-experimental-feature Embedded
|
// RUN: %target-swift-frontend -Osize -emit-ir %t/Main.swift -I%t -enable-experimental-feature Embedded
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// BEGIN Module.swift
|
// BEGIN Module.swift
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: CODEGENERATOR=ARM
|
// REQUIRES: CODEGENERATOR=ARM
|
||||||
// REQUIRES: embedded_stdlib_cross_compiling
|
// REQUIRES: embedded_stdlib_cross_compiling
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT
|
// RUN: %target-run %t/a.out | %FileCheck %s -check-prefix=CHECK-OUTPUT
|
||||||
|
|
||||||
// REQUIRES: executable_test,swift_stdlib_no_asserts,optimized_stdlib
|
// REQUIRES: executable_test,swift_stdlib_no_asserts,optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
|
|
||||||
// Check if the optimizer is able to convert array literals to constant statically initialized arrays.
|
// Check if the optimizer is able to convert array literals to constant statically initialized arrays.
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public struct MyInterpolation : StringInterpolationProtocol {
|
public struct MyInterpolation : StringInterpolationProtocol {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -emit-ir %s -enable-experimental-feature Embedded -Osize
|
// RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -emit-ir %s -enable-experimental-feature Embedded -Osize
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: CODEGENERATOR=ARM
|
// REQUIRES: CODEGENERATOR=ARM
|
||||||
// REQUIRES: embedded_stdlib_cross_compiling
|
// REQUIRES: embedded_stdlib_cross_compiling
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: synchronization
|
// REQUIRES: synchronization
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded -throws-as-traps | %FileCheck %s
|
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded -throws-as-traps | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func test() {
|
public func test() {
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded -throws-as-traps | %FileCheck %s --check-prefix CHECK-TRAPS-IR
|
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded -throws-as-traps | %FileCheck %s --check-prefix CHECK-TRAPS-IR
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
enum MyError : Error {
|
enum MyError : Error {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public enum MyError : Error, Equatable {
|
public enum MyError : Error, Equatable {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func test() {
|
public func test() {
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
public func unsafeWriteArray<T, R>(_ elementType: R.Type, array: inout T, index n: Int, value: R) {
|
public func unsafeWriteArray<T, R>(_ elementType: R.Type, array: inout T, index n: Int, value: R) {
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
// RUN: %target-swift-frontend -emit-sil -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library | %FileCheck %s
|
// RUN: %target-swift-frontend -emit-sil -I %t %t/Main.swift -enable-experimental-feature Embedded -parse-as-library | %FileCheck %s
|
||||||
|
|
||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
|
|
||||||
// BEGIN MyModule.swift
|
// BEGIN MyModule.swift
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
// REQUIRES: swift_in_compiler
|
// REQUIRES: swift_in_compiler
|
||||||
// REQUIRES: executable_test
|
// REQUIRES: executable_test
|
||||||
// REQUIRES: optimized_stdlib
|
// REQUIRES: optimized_stdlib
|
||||||
// REQUIRES: OS=macosx || OS=linux-gnu
|
|
||||||
// REQUIRES: volatile
|
// REQUIRES: volatile
|
||||||
// REQUIRES: swift_feature_Embedded
|
// REQUIRES: swift_feature_Embedded
|
||||||
// REQUIRES: swift_feature_Extern
|
// REQUIRES: swift_feature_Extern
|
||||||
|
|||||||
Reference in New Issue
Block a user