Skip to content

Commit eebb484

Browse files
committed
[embedded] Adjust tests for the embedded stdlib deployment target bump
1 parent a35db85 commit eebb484

File tree

4 files changed

+18
-3
lines changed

4 files changed

+18
-3
lines changed

test/DebugInfo/embedded.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Check that the "-enable-embedded-swift" is stored as a flag in the
22
// Compile Unit.
33

4-
// RUN: %target-swift-frontend -emit-ir -enable-experimental-feature Embedded -g %s -o - | %FileCheck %s
4+
// RUN: %target-swift-frontend -target %target-cpu-apple-macos14 -emit-ir -enable-experimental-feature Embedded -g %s -o - | %FileCheck %s
55

66
// REQUIRES: swift_in_compiler
77
// REQUIRES: executable_test

test/IDE/complete_embedded.swift renamed to test/IDE/complete_embedded_linux.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: asserts
22
// REQUIRES: swift_in_compiler
3-
// REQUIRES: OS=macosx || OS=linux-gnu
3+
// REQUIRES: OS=linux-gnu
44
// RUN: %batch-code-completion -enable-experimental-feature Embedded
55

66
func test() {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// REQUIRES: asserts
2+
// REQUIRES: swift_in_compiler
3+
// REQUIRES: OS=macosx
4+
// RUN: %batch-code-completion -target %target-cpu-apple-macos14 -enable-experimental-feature Embedded
5+
6+
func test() {
7+
#^GLOBAL^#
8+
// GLOBAL: Literal[Integer]/None: 0[#Int#];
9+
// GLOBAL: Literal[Boolean]/None: true[#Bool#];
10+
// GLOBAL: Literal[Boolean]/None: false[#Bool#];
11+
// GLOBAL: Literal[Nil]/None: nil;
12+
// GLOBAL: Literal[String]/None: "{#(abc)#}"[#String#];
13+
// GLOBAL: Literal[Array]/None: [{#(values)#}][#Array#];
14+
// GLOBAL: Literal[Dictionary]/None: [{#(key)#}: {#(value)#}][#Dictionary#];
15+
}

test/SILOptimizer/devirt_deinits.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -primary-file %s -parse-as-library -sil-verify-all -Xllvm -enable-deinit-devirtualizer -module-name=test -emit-sil | %FileCheck %s
1+
// RUN: %target-swift-frontend -target %target-cpu-apple-macos14 -primary-file %s -parse-as-library -sil-verify-all -Xllvm -enable-deinit-devirtualizer -module-name=test -emit-sil | %FileCheck %s
22

33
// Also do an end-to-end test and check if the compiled executable works as expected.
44
// RUN: %target-run-simple-swift(-Xllvm -enable-deinit-devirtualizer -parse-as-library) | %FileCheck -check-prefix CHECK-OUTPUT %s

0 commit comments

Comments
 (0)