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.
2 parents 72da5a7 + e4a6190 commit 1484f1cCopy full SHA for 1484f1c
test/ClangImporter/Inputs/custom-modules/module.modulemap
@@ -279,3 +279,7 @@ module "Weird C Module" {
279
module Aliases {
280
header "Aliases.h"
281
}
282
+
283
+module RetroactiveVersioning {
284
+ header "versioning.h"
285
+}
test/ClangImporter/Inputs/custom-modules/versioning.h
@@ -0,0 +1,9 @@
1
+#pragma once
2
+extern const int kVersion;
3
+extern const int kVersion1;
4
+extern const int kVersion2;
5
+#if OLD_DEPLOYMENT_TARGET
6
+#define kVersion kVersion1
7
+#else
8
+#define kVersion kVersion2
9
+#endif
test/ClangImporter/versioning.swift
@@ -0,0 +1,7 @@
+// RUN: %target-typecheck-verify-swift %s -I %S/Inputs/custom-modules
+// XFAIL: *
+// expected-no-diagnostics
+import RetroactiveVersioning
+let _ = kVersion
0 commit comments