aboutsummaryrefslogtreecommitdiff
path: root/tests/target-triplet/driver.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-03-08 17:17:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-03-08 17:17:53 +0200
commitff9995f1e638ada66a68a54475adea7c9191916b (patch)
tree38afb6e3bb57cd573cb23ea49624dc2a23268270 /tests/target-triplet/driver.cxx
parent221eebf2ab4f97810a00b23bdea3a6679fe8d07d (diff)
Add recognition of *-apple-ios* target triplets, ios target class
Diffstat (limited to 'tests/target-triplet/driver.cxx')
-rw-r--r--tests/target-triplet/driver.cxx19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/target-triplet/driver.cxx b/tests/target-triplet/driver.cxx
index a6eff05..bfa01fa 100644
--- a/tests/target-triplet/driver.cxx
+++ b/tests/target-triplet/driver.cxx
@@ -117,6 +117,25 @@ main ()
"aarch64-apple-darwin20.1.0",
"aarch64", "apple", "darwin", "20.1.0", "macos"));
+ assert (test ("arm64-apple-ios14.4",
+ "aarch64-apple-ios14.4",
+ "aarch64", "apple", "ios", "14.4", "ios"));
+
+ assert (test ("arm64-apple-ios",
+ "aarch64-apple-ios",
+ "aarch64", "apple", "ios", "", "ios"));
+
+ assert (test ("arm64-apple-ios14.4-simulator",
+ "aarch64-apple-ios14.4-simulator",
+ "aarch64", "apple", "ios-simulator", "14.4", "ios"));
+
+ assert (test ("arm64-apple-ios-simulator",
+ "aarch64-apple-ios-simulator",
+ "aarch64", "apple", "ios-simulator", "", "ios"));
+
+ assert (test ("x86_64-apple-ios14.4-macabi",
+ "x86_64-apple-ios14.4-macabi",
+ "x86_64", "apple", "ios-macabi", "14.4", "ios"));
// Version extraction.
//