mirror of
https://github.com/apple/swift.git
synced 2026-10-08 12:50:50 +02:00
And update tests to use them. This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130. Fixes rdar://169749886.
11 lines
652 B
Swift
11 lines
652 B
Swift
// Enum case raw value expressions
|
|
// REQUIRES: swift_feature_LiteralExpressions
|
|
// RUN: %target-swift-frontend -emit-module -module-name SectionLiteralExprInterface -emit-module-interface-path %t/SectionLiteralExprInterface.swiftinterface -enable-library-evolution -swift-version 5 %s -enable-experimental-feature LiteralExpressions
|
|
// RUN: %FileCheck %s < %t/SectionLiteralExprInterface.swiftinterface
|
|
|
|
// Simple arithmetic operators on integers
|
|
@section("mysection") public let intBinaryArithOp1 = 1 + 1
|
|
|
|
// As of today, the values do not get printed in the textual interface
|
|
// CHECK: @section("mysection") public let intBinaryArithOp1: Swift::Int
|