Skip to content

Commit f1ae3bb

Browse files
committed
Revert "[test] Put variadic definitions in a platform-independent header and remove the platform requirement."
The linux bots are still in oblivion of the variadic c function error. Swift SVN r32915
1 parent e048947 commit f1ae3bb

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

test/ClangModules/availability_variadic.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse -verify -I %S/Inputs/custom-modules %s
22

3-
import cfuncs
3+
// REQUIRES: OS=macosx
4+
5+
import Foundation
46

57
func variadicFunc2(A : Int32, _: Any...) -> Int { return 0 }
68

test/Inputs/clang-importer-sdk/usr/include/Foundation.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,3 +981,7 @@ typedef NS_OPTIONS(NSUInteger, NSEnumerationOptions) {
981981
@property (readonly) BOOL appliesForAJob;
982982
@property (readonly) BOOL setShouldBeInfinite;
983983
@end
984+
985+
int variadicFunc1(int A, ...);
986+
987+
int variadicFunc2(int A, ...);

test/Inputs/clang-importer-sdk/usr/include/cfuncs.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,3 @@ struct not_importable;
4242

4343
void opaque_pointer_param(struct not_importable *);
4444

45-
int variadicFunc1(int A, ...);
46-
int variadicFunc2(int A, ...);

0 commit comments

Comments
 (0)