You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/Parse/ConditionalCompilation/compiler_version.swift
+16-2Lines changed: 16 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
asdf asdf asdf asdf
8
8
#endif
9
9
10
-
#if _compiler_version("10.*.10.10")
10
+
#if _compiler_version("600.*.10.10")
11
11
12
12
#if os(iOS)
13
13
letz=1
@@ -48,7 +48,10 @@
48
48
letthisWillStillParseBecauseConfigIsError=1
49
49
#endif
50
50
51
-
#if _compiler_version("700.0.100") // expected-warning {{the second version component is not used for comparison}}
51
+
#if _compiler_version("700.0.100") // expected-warning {{the second version component is not used for comparison in legacy compiler versions}} {{28-29=*}}
52
+
#endif
53
+
54
+
#if _compiler_version("5.7.100") // expected-warning {{the second version component is not used for comparison in legacy compiler versions; are you trying to encode a new Swift compiler version for compatibility with legacy compilers?}} {{24-27=5007.*}}
52
55
#endif
53
56
54
57
#if _compiler_version("700.*.1.1.1.1") // expected-error {{version must not have more than five components}}
@@ -65,3 +68,14 @@
65
68
66
69
#if _compiler_version("700.*.1.1.1000") // expected-error {{version component out of range: must be in [0, 999]}}
0 commit comments