[swift-parse-test] Add -skip-bodies option

This is no-op for SwiftParser. Also add a sanity check test file.
This commit is contained in:
Rintaro Ishizaki
2023-10-30 12:11:46 -07:00
parent e01df929c2
commit 66b8946eb4
4 changed files with 69 additions and 26 deletions

View File

@@ -0,0 +1,8 @@
// REQUIRES: swift_swift_parser
// RUN: %swift-parse-test -swift-parser -lib-parse -skip-bodies -n 2 %s
struct S {
func foo() {
print(1)
}
}