Files
swift-mirror/test/LinkerSections/function_sections_ir_check.swift
Alex Suhan eed6a4eb94 Expose function sections option (#28088)
* Expose separate function sections option to compiler

* Add function sections test
2020-01-13 14:45:01 -08:00

13 lines
479 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-build-swift -Xfrontend -function-sections -emit-library -emit-ir -static -parse-stdlib %S/Inputs/FunctionSections.swift | %FileCheck %s
// CHECK: define {{(dllexport |protected )?}}swiftcc void @"$s16FunctionSections5func1yyF"() #0 {
// CHECK: entry:
// CHECK: ret void
// CHECK: }
// CHECK: define {{(dllexport |protected )?}}swiftcc void @"$s16FunctionSections5func2yyF"() #0 {
// CHECK: entry:
// CHECK: ret void
// CHECK: }