Skip to content

Commit b618fdc

Browse files
author
ematejska
authored
Merge pull request #5495 from graydon/rdar-28786959-3.0-branch-if-swift-3-digit-version
Fix build breakage on linux where swift version is still 3.0
2 parents 9d6f00b + fe6258b commit b618fdc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/Parse/ConditionalCompilation/language_version.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@
4949
// Check that an extra .0 doesn't make a version "bigger"; NB this test only
5050
// tests the fix on 3.0.1, but that's the swift version the fix was backported
5151
// to. On master, the fix is tested by language_version_explicit.swift
52+
#if swift(>=3.0.1)
5253
#if swift(>=3.0.1.0)
5354
#else
5455
// This shouldn't emit any diagnostics.
5556
asdf asdf asdf asdf
5657
#endif
58+
#endif
5759

5860
#if swift(>=2.0, *) // expected-error {{expected only one argument to platform condition}}
5961
#endif

0 commit comments

Comments
 (0)