Skip to content

Commit cc3d2ec

Browse files
committed
[Test] Update test to be tolerant to attribute order changes
1 parent 59d1df7 commit cc3d2ec

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/IDE/print_ast_tc_decls.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,12 @@ class d0170_TestAvailability {
547547
// PASS_COMMON-LABEL: {{^}}@objc class d0180_TestIBAttrs {{{$}}
548548

549549
@IBAction func anAction(_: AnyObject) {}
550-
// PASS_COMMON-NEXT: {{^}} @objc @IBAction @MainActor func anAction(_: AnyObject){{$}}
550+
/// Tolerate different attribute orders to support both reading from source
551+
/// and deserializing from swiftmodule.
552+
// PASS_COMMON-NEXT: {{^}} @objc
553+
// PASS_COMMON-DAG: @IBAction
554+
// PASS_COMMON-DAG: @MainActor
555+
// PASS_COMMON: func anAction(_: AnyObject){{$}}
551556

552557
@IBSegueAction func aSegueAction(_ coder: AnyObject, sender: AnyObject, identifier: AnyObject?) -> Any? { fatalError() }
553558
// PASS_COMMON-NEXT: {{^}} @objc @IBSegueAction func aSegueAction(_ coder: AnyObject, sender: AnyObject, identifier: AnyObject?) -> Any?{{$}}

0 commit comments

Comments
 (0)