mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
628 B
Swift
11 lines
628 B
Swift
// REQUIRES: OS=linux-gnu || OS=linux-androideabi || OS=linux-android || OS=freebsd
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: %target-build-swift -Xfrontend -function-sections -emit-module -emit-library -static -parse-stdlib %S/Inputs/FunctionSections.swift
|
|
// RUN: %target-build-swift -Xlinker --gc-sections -Xlinker -Map=%t/../../FunctionSections.map -I%t/../.. -L%t/../.. -lFunctionSections %S/Inputs/FunctionSectionsUse.swift
|
|
// RUN: %FileCheck %s < %t/../../FunctionSections.map
|
|
|
|
// CHECK: Discarded input sections
|
|
// CHECK: .text.$s16FunctionSections5func2yyF
|
|
// CHECK: Memory map
|
|
// CHECK: .text.$s16FunctionSections5func1yyF
|