Files
swift-mirror/validation-test/compiler_scale/function_bodies.gyb
Slava Pestov 93c386d263 Parse: Skip function bodies when delayed member parsing mode is on
Fixes <rdar://problem/47305142>.
2019-01-18 00:15:53 -05:00

37 lines
540 B
Plaintext

// RUN: %scale-test --sum-multi --typecheck --begin 5 --end 16 --step 5 --select NumFunctionsParsed %s
// REQUIRES: OS=macosx
// REQUIRES: asserts
func method${N}() {}
class C${N} {
func method${N}() {}
}
extension C${N} {
func otherMethod${N}() {}
}
struct S${N} {
func method${N}() {}
}
extension S${N} {
func otherMethod${N}() {}
}
enum E${N} {
func method${N}() {}
}
extension E${N} {
func otherMethod${N}() {}
}
protocol P${N} {
func method${N}()
}
extension P${N} {
func otherMethod${N}() {}
}