We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b715da commit 7e46f80Copy full SHA for 7e46f80
lit_tests/print_verify_tree.swift
@@ -0,0 +1,11 @@
1
+// RUN: %empty-directory(%t)
2
+// RUN: %lit-test-helper -print-tree -source-file %s > %t.result
3
+// RUN: diff -u %t.result %s
4
+
5
+func foo() {
6
+#if swift(>=3.2)
7
+ components.append("-b \"\(string[..<string.index(before: string.endIndex)])\"")
8
+#else
9
+ components.append("-b \"\(string.substring(to: string.characters.index(before: string.endIndex)))\"")
10
+#endif
11
+}
0 commit comments