Skip to content

Commit 278e778

Browse files
authored
Merge pull request #73584 from kubamracek/embedded-print-no-alloc
[embedded] Add a test checking that printing StaticStrings, integers,booleans is allocation-free
2 parents 8578a0e + 63742ba commit 278e778

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -no-allocations
2+
3+
// RUN: %target-swift-emit-ir -target armv7-apple-none-macho -no-allocations -Xcc -D__MACH__ %s -enable-experimental-feature Embedded
4+
// RUN: %target-swift-emit-ir -target arm64-apple-none-macho -no-allocations -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ %s -enable-experimental-feature Embedded
5+
6+
// REQUIRES: swift_in_compiler
7+
// REQUIRES: optimized_stdlib
8+
// REQUIRES: OS=macosx || OS=linux-gnu
9+
// REQUIRES: CODEGENERATOR=ARM
10+
11+
print("Hello Embedded Swift!")
12+
print(42)
13+
print(false)

0 commit comments

Comments
 (0)