mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
9 lines
396 B
Swift
9 lines
396 B
Swift
// Constant globals should "work" even in top-level code mode.
|
|
// REQUIRES: swift_feature_CompileTimeValues
|
|
// REQUIRES: rdar146954355
|
|
// RUN: %target-swift-frontend -emit-ir -primary-file %s -enable-experimental-feature CompileTimeValues
|
|
// RUN: %target-swift-frontend -emit-ir -primary-file %s -parse-as-library -enable-experimental-feature CompileTimeValues
|
|
|
|
|
|
@const let constGlobal: Int = 42
|