mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add a new SourceFileKind and InputFileKind for textual interfaces
And test this by tweaking the rules to allow functions without definitions, like SIL files.
This commit is contained in:
10
test/ModuleInterface/SmokeTest.swiftinterface
Normal file
10
test/ModuleInterface/SmokeTest.swiftinterface
Normal file
@@ -0,0 +1,10 @@
|
||||
// Make sure parse-only works...
|
||||
// RUN: %target-swift-frontend -parse %s
|
||||
|
||||
// ...and then make sure parse-and-typecheck-and-serialize works.
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: %target-swift-frontend -emit-module -o %t/SmokeTest.swiftmodule %s
|
||||
// RUN: %target-swift-ide-test -print-module -module-to-print SmokeTest -I %t -source-filename x -print-access | %FileCheck %s
|
||||
|
||||
// CHECK: public func verySimpleFunction(){{$}}
|
||||
public func verySimpleFunction()
|
||||
Reference in New Issue
Block a user