Skip to content

Commit 77a411a

Browse files
authored
Merge pull request swiftlang#24544 from drodriguez/android-aarch64-conditional-compilation
[android] Add a test for Android conditional compilation (AArch64)
2 parents c506747 + f0a6948 commit 77a411a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %swift -typecheck %s -verify -target aarch64-none-linux-android -disable-objc-interop -parse-stdlib
2+
// RUN: %swift-ide-test -test-input-complete -source-filename=%s -target aarch64-none-linux-android
3+
4+
#if os(Linux)
5+
// This block should not parse.
6+
// os(Android) does not imply os(Linux).
7+
let i: Int = "Hello"
8+
#endif
9+
10+
#if arch(arm64) && os(Android) && _runtime(_Native) && _endian(little)
11+
class C {}
12+
var x = C()
13+
#endif
14+
var y = x

0 commit comments

Comments
 (0)