Files
swift-mirror/test/IRGen/section_asm.swift
Daniel Rodríguez Troitiño ba68faaed5 [test] Mark tests that use experimental/upcoming features as such
Find all the usages of `--enable-experimental-feature` or
`--enable-upcoming-feature` in the tests and replace some of the
`REQUIRES: asserts` to use `REQUIRES: swift-feature-Foo` instead, which
should correctly apply to depending on the asserts/noasserts mode of the
toolchain for each feature.

Remove some comments that talked about enabling asserts since they don't
apply anymore (but I might had miss some).

All this was done with an automated script, so some formatting weirdness
might happen, but I hope I fixed most of those.

There might be some tests that were `REQUIRES: asserts` that might run
in `noasserts` toolchains now. This will normally be because their
feature went from experimental to upcoming/base and the tests were not
updated.
2024-11-02 11:46:46 -07:00

50 lines
1.6 KiB
Swift

// RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %S/section.swift -S -parse-as-library | %FileCheck --check-prefix CHECK%target-os-binfmt-elf %s
// REQUIRES: swift_in_compiler
// REQUIRES: swift_feature_SymbolLinkageMarkers
// UNSUPPORTED: CPU=wasm32
// CHECK: .section{{.*}}__TEXT,__mysection
// CHECK-NOT: .section
// CHECK: $s7section3fooyyF:
// CHECK: .section{{.*}}__TEXT,__mysection
// CHECK-NOT: .section
// CHECK: $s7section8MyStructV3fooyyF:
// CHECK: .section{{.*}}__DATA,__mysection
// CHECK-NOT: .section
// CHECK: $s7section2g0Sivp:
// CHECK-NOT: .section
// CHECK: $s7section2g1Si_Sitvp:
// CHECK-NOT: .section
// CHECK: $s7section2g2Sbvp:
// CHECK-NOT: .section
// CHECK: $s7section2g3Sbvp:
// CHECK-NOT: .section
// CHECK: $s7section2g4SpySiGSgvp:
// CHECK-NOT: .section
// CHECK: $s7section2g5SpySiGSgvp:
// CHECK-NOT: .section
// CHECK: $s7section8MyStructV7static0SivpZ:
// CHECKELF: .section{{.*}}"__TEXT,__mysection","axR"
// CHECKELF-NOT: .section
// CHECKELF: $s7section3fooyyF:
// CHECKELF: .section{{.*}}"__TEXT,__mysection","axR"
// CHECKELF-NOT: .section
// CHECKELF: $s7section8MyStructV3fooyyF:
// CHECKELF: .section{{.*}}"__DATA,__mysection","awR"
// CHECKELF-NOT: .section
// CHECKELF: $s7section2g0Sivp:
// CHECKELF: $s7section2g1Si_Sitvp:
// CHECKELF: $s7section2g2Sbvp:
// CHECKELF: .section{{.*}}"__DATA,__mysection","awR"
// CHECKELF: $s7section2g3Sbvp:
// CHECKELF: .section{{.*}}"__DATA,__mysection","awR"
// CHECKELF: $s7section2g4SpySiGSgvp:
// CHECKELF: $s7section2g5SpySiGSgvp:
// CHECKELF: $s7section8MyStructV7static0SivpZ: