Skip to content

Commit f7721ef

Browse files
committed
Require the Swift swift parser for a few tests affected by macros
(cherry picked from commit 30f1794)
1 parent 2f41367 commit f7721ef

File tree

7 files changed

+9
-0
lines changed

7 files changed

+9
-0
lines changed

test/IDE/print_stdlib.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Check interface produced for the standard library.
22
//
33
// REQUIRES: nonexecutable_test
4+
// REQUIRES: swift_swift_parser
45
//
56
// RUN: %target-swift-frontend -typecheck %s
67
// RUN: %target-swift-ide-test -print-module -module-to-print=Swift -source-filename %s -print-interface > %t.txt

test/Macros/attached_macros_diags.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-typecheck-verify-swift -swift-version 5 -module-name MacrosTest
2+
// REQUIRES: swift_swift_parser
23

34
@attached(accessor) macro m1() = #externalMacro(module: "MyMacros", type: "Macro1")
45
// expected-warning@-1{{external macro implementation type 'MyMacros.Macro1' could not be found for macro 'm1()'}}

test/Macros/external-macro-without-decl.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-typecheck-verify-swift -swift-version 5 -module-name Swift -parse-stdlib
2+
// REQUIRES: swift_swift_parser
23

34
// expected-warning@+2{{@expression has been removed in favor of @freestanding(expression)}}
45
// expected-warning@+1{{external macro implementation type 'A.B' could not be found for macro 'myMacro()'; the type must be public and provided via '-load-plugin-library'}}

test/ModuleInterface/macros.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// REQUIRES: asserts
2+
// REQUIRES: swift_swift_parser
23

34
// RUN: %empty-directory(%t)
45

test/Parse/invalid.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %target-typecheck-verify-swift
2+
// REQUIRES: swift_swift_parser
23

34
// rdar://15946844
45
func test1(inout var x : Int) {} // expected-warning {{'var' in this position is interpreted as an argument label}} {{18-21=`var`}}

test/SourceKit/CodeComplete/complete_sort_order.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,5 @@ func test8() {
242242
// CALLARG: String
243243
// CALLARG: intVal
244244
}
245+
246+
// REQUIRES: swift_swift_parser

test/SourceKit/Refactoring/shorthand_shadow.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,5 @@ func renameBuiltinMacroWithoutHash() {
3535
// BUILTIN: error: cannot rename system symbol 'file'
3636
}
3737

38+
39+
// REQUIRES: swift_swift_parser

0 commit comments

Comments
 (0)