File tree Expand file tree Collapse file tree 2 files changed +21
-20
lines changed Expand file tree Collapse file tree 2 files changed +21
-20
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %s -emit-sil -parse-as-library | %FileCheck %s --check-prefix=SIL
2
2
// RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %s -emit-ir -parse-as-library | %FileCheck %s --check-prefix=IR
3
- // RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %s -S -parse-as-library | %FileCheck %s --check-prefix=ASM --check-prefix ASM-%target-os
4
3
5
4
// REQUIRES: swift_in_compiler
6
5
46
45
// IR: @"$s7section2g5_Wz" = internal global {{i64|i32}} 0
47
46
// IR: @"$s7section2g5SpySiGSgvp" = hidden global {{i64|i32}} 1111638594, section "__TEXT,__mysection"
48
47
// IR: define {{.*}}@"$s7section3fooyyF"(){{.*}} section "__TEXT,__mysection"
49
-
50
- // ASM: .section{{.*}}__TEXT,__mysection
51
- // ASM-NOT: .section
52
- // ASM: $s7section3fooyyF:
53
- // ASM-linux-gnu: .section{{.*}}__TEXT,__mysection
54
- // ASM-linux-android: .section{{.*}}__TEXT,__mysection
55
- // ASM-linux-androideabi: .section{{.*}}__TEXT,__mysection
56
- // ASM-NOT: .section
57
- // ASM: $s7section2g0Sivp:
58
- // ASM-NOT: .section
59
- // ASM: $s7section2g1Si_Sitvp:
60
- // ASM-NOT: .section
61
- // ASM: $s7section2g2Sbvp:
62
- // ASM-NOT: .section
63
- // ASM: $s7section2g3Sbvp:
64
- // ASM-NOT: .section
65
- // ASM: $s7section2g4SpySiGSgvp:
66
- // ASM-NOT: .section
67
- // ASM: $s7section2g5SpySiGSgvp:
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-frontend -enable-experimental-feature SymbolLinkageMarkers -primary-file %S/section.swift -S -parse-as-library | %FileCheck %s --check-prefix=ASM --check-prefix ASM-%target-os
2
+ // REQUIRES: swift_in_compiler
3
+
4
+ // ASM: .section{{.*}}__TEXT,__mysection
5
+ // ASM-NOT: .section
6
+ // ASM: $s7section3fooyyF:
7
+ // ASM-linux-gnu: .section{{.*}}__TEXT,__mysection
8
+ // ASM-linux-android: .section{{.*}}__TEXT,__mysection
9
+ // ASM-linux-androideabi: .section{{.*}}__TEXT,__mysection
10
+ // ASM-NOT: .section
11
+ // ASM: $s7section2g0Sivp:
12
+ // ASM-NOT: .section
13
+ // ASM: $s7section2g1Si_Sitvp:
14
+ // ASM-NOT: .section
15
+ // ASM: $s7section2g2Sbvp:
16
+ // ASM-NOT: .section
17
+ // ASM: $s7section2g3Sbvp:
18
+ // ASM-NOT: .section
19
+ // ASM: $s7section2g4SpySiGSgvp:
20
+ // ASM-NOT: .section
21
+ // ASM: $s7section2g5SpySiGSgvp:
You can’t perform that action at this time.
0 commit comments