Files
swift-mirror/test/LiteralExpressions/SectionInterface.swift
Becca Royal-Gordon 1f008fb0d0 [ModuleInterface] Enable module selectors by default
And update tests to use them.

This commit depends on fixes in swiftlang/swift PRs #86905, #87129, and #87130.

Fixes rdar://169749886.
2026-02-20 00:35:23 -08:00

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