Files
swift-mirror/test/TBD/function.swift
Huon Wilson 40ba18615b [Frontend] -validate-tbd-against-ir has 3 levels of validation.
It can now:

- not validate (=none)
- validate that all symbols in the IR are also in the TBD (=missing),
- validate the above, and also that all in the TBD are in the IR (=all).

The first and last were switched between with the old boolean flag, the
second is new.
2017-05-19 18:36:48 -07:00

11 lines
355 B
Swift

// RUN: %target-swift-frontend -emit-ir -o- -parse-as-library -module-name test -validate-tbd-against-ir=all %s
public func publicNoArgs() {}
public func publicSomeArgs(_: Int, x: Int) {}
internal func internalNoArgs() {}
internal func internalSomeArgs(_: Int, x: Int) {}
private func privateNoArgs() {}
private func privateSomeArgs(_: Int, x: Int) {}