mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
259 B
Swift
13 lines
259 B
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) %s -emit-ir -o - | %FileCheck %s
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
import cvars
|
|
|
|
// Check that the mangling is correct.
|
|
// CHECK: @PI = external global float, align 4
|
|
|
|
func getPI() -> Float {
|
|
return PI
|
|
}
|