Skip to content

Commit 4586af0

Browse files
committed
Merge pull request swiftlang#1762 from compnerd/squelch-arguments
test: ignore unused arguments in tests invoking Clang
2 parents c319763 + 89d37bc commit 4586af0

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

test/PrintAsObjC/cdecl.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse-as-library %t/cdecl.swiftmodule -parse -emit-objc-header-path %t/cdecl.h -import-objc-header %S/../Inputs/empty.h -disable-objc-attr-requires-foundation-module
55
// RUN: FileCheck %s < %t/cdecl.h
66
// RUN: %check-in-clang %t/cdecl.h
7-
// RUN: %check-in-clang -fno-modules %t/cdecl.h -include Foundation.h -include ctypes.h -include CoreFoundation.h
7+
// RUN: %check-in-clang -fno-modules -Qunused-arguments %t/cdecl.h -include Foundation.h -include ctypes.h -include CoreFoundation.h
88

99
// REQUIRES: objc_interop
1010

test/PrintAsObjC/classes.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
// RUN: FileCheck %s < %t/classes.h
1919
// RUN: FileCheck --check-prefix=NEGATIVE %s < %t/classes.h
2020
// RUN: %check-in-clang %t/classes.h
21-
// RUN: not %check-in-clang -fno-modules %t/classes.h
22-
// RUN: %check-in-clang -fno-modules %t/classes.h -include Foundation.h -include CoreFoundation.h -include objc_generics.h
21+
// RUN: not %check-in-clang -fno-modules -Qunused-arguments %t/classes.h
22+
// RUN: %check-in-clang -fno-modules -Qunused-arguments %t/classes.h -include Foundation.h -include CoreFoundation.h -include objc_generics.h
2323

2424
// CHECK-NOT: AppKit;
2525
// CHECK-NOT: Properties;

test/PrintAsObjC/empty.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -parse -emit-objc-header-path %t/empty.h
44
// RUN: FileCheck %s < %t/empty.h
55
// RUN: %check-in-clang -std=c99 %t/empty.h
6-
// RUN: %check-in-clang -std=c99 -fno-modules %t/empty.h
6+
// RUN: %check-in-clang -std=c99 -fno-modules -Qunused-arguments %t/empty.h
77
// RUN: not %check-in-clang -I %S/Inputs/clang-headers %t/empty.h 2>&1 | FileCheck %s --check-prefix=CUSTOM-OBJC-PROLOGUE
88

99
// Make sure we can handle two bridging headers. rdar://problem/22702104
10-
// RUN: %check-in-clang -include %t/empty.h -std=c99 -fno-modules %t/empty.h
10+
// RUN: %check-in-clang -include %t/empty.h -std=c99 -fno-modules -Qunused-arguments %t/empty.h
1111

1212
// REQUIRES: objc_interop
1313

test/PrintAsObjC/enums.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// RUN: FileCheck %s < %t/enums.h
66
// RUN: FileCheck -check-prefix=NEGATIVE %s < %t/enums.h
77
// RUN: %check-in-clang %t/enums.h
8-
// RUN: %check-in-clang -fno-modules %t/enums.h -include Foundation.h -include ctypes.h -include CoreFoundation.h
8+
// RUN: %check-in-clang -fno-modules -Qunused-arguments %t/enums.h -include Foundation.h -include ctypes.h -include CoreFoundation.h
99

1010
// REQUIRES: objc_interop
1111

test/PrintAsObjC/simd.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -parse-as-library %t/simd_test.swiftmodule -parse -emit-objc-header-path %t/simd.h -import-objc-header %S/../Inputs/empty.h -disable-objc-attr-requires-foundation-module
1313
// RUN: FileCheck %s < %t/simd.h
1414
// RUN: %check-in-clang %t/simd.h
15-
// RUN: %check-in-clang -fno-modules %t/simd.h -include Foundation.h
15+
// RUN: %check-in-clang -fno-modules -Qunused-arguments %t/simd.h -include Foundation.h
1616

1717
// REQUIRES: objc_interop
1818

0 commit comments

Comments
 (0)