Skip to content

Commit 7d5fd7d

Browse files
committed
filter out swift runtime warnings
1 parent a62b005 commit 7d5fd7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Macros/SwiftifyImport/SizedBy/OpaqueReturn.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
// RUN: %empty-directory(%t)
44
// RUN: split-file %s %t
55
// RUN: %target-swift-frontend %t/test.swift -typecheck -plugin-path %swift-plugin-dir -strict-memory-safety -verify
6-
// RUN: %target-swift-frontend %t/test.swift -typecheck -plugin-path %swift-plugin-dir -strict-memory-safety -dump-macro-expansions 2> %t/expansions.txt
7-
// RUN: diff %t/expansions.txt %t/expansions.txt.expected
6+
// RUN: %target-swift-frontend %t/test.swift -typecheck -plugin-path %swift-plugin-dir -strict-memory-safety -dump-macro-expansions 2> %t/tmp.txt
7+
// RUN: %FileCheck --dry-run --ignore-runtime-warnings > %t/expansions.txt < %t/tmp.txt
8+
// RUN: diff --strip-trailing-cr %t/expansions.txt %t/expansions.txt.expected
89

910
//--- test.swift
1011
@_SwiftifyImport(.sizedBy(pointer: .return, size: "size"))
@@ -103,3 +104,4 @@ public func impNullableSpan(p: RawSpan) -> RawSpan {
103104
}), byteCount: Int(size)), copying: ())
104105
}
105106
------------------------------
107+

0 commit comments

Comments
 (0)