File tree 5 files changed +9
-6
lines changed
5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 6
6
// RUN: %FileCheck %s -check-prefix=TRANSPARENT-CHECK < %t.ll
7
7
8
8
// CHECK: define{{( dllexport)?}}{{( protected)?( signext)?}} i32 @main{{.*}}
9
- // CHECK: call swiftcc i64 @"$s4main8noinlineys5Int64VADF"(i64 %4 ), !dbg ![[CALL:.*]]
9
+ // CHECK: call swiftcc i64 @"$s4main8noinlineys5Int64VADF"(i64 %{{.*}} ), !dbg ![[CALL:.*]]
10
10
// CHECK-DAG: ![[TOPLEVEL:.*]] = !DIFile(filename: "{{.*}}inlinescopes.swift"
11
11
12
12
import FooBar
Original file line number Diff line number Diff line change 1
1
2
2
// RUN: %empty-directory(%t)
3
- // RUN: echo "public var x = Int()" | %target-swift-frontend -module-name FooBar -emit-module -o %t -
3
+ // RUN: echo "public var x = Int()" | %target-swift-frontend -parse-as-library - module-name FooBar -emit-module -o %t -
4
4
// RUN: %target-swift-emit-silgen -parse-stdlib -module-name expressions %s -I%t -disable-access-control | %FileCheck %s
5
5
6
6
import Swift
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-swift-frontend -Xllvm -sil-full-demangle -emit-module -o %t %S/Inputs/def_global.swift
2
+ // RUN: %target-swift-frontend -Xllvm -sil-full-demangle -parse-as-library - emit-module -o %t %S/Inputs/def_global.swift
3
3
// RUN: %target-swift-emit-silgen -Xllvm -sil-full-demangle -parse-as-library -I %t %s | %FileCheck %s
4
4
//
5
5
// Test that SILGen uses the "global_init" attribute for all global
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-swift-frontend -emit-module -enable-library-evolution -emit-module-path=%t/resilient_global.swiftmodule -module-name=resilient_global %S/../Inputs/resilient_global.swift
2
+ // RUN: %target-swift-frontend -emit-module -parse-as-library - enable-library-evolution -emit-module-path=%t/resilient_global.swiftmodule -module-name=resilient_global %S/../Inputs/resilient_global.swift
3
3
// RUN: %target-swift-emit-silgen -I %t -enable-library-evolution -parse-as-library %s | %FileCheck %s
4
4
// RUN: %target-swift-emit-sil -I %t -O -enable-library-evolution -parse-as-library %s | %FileCheck --check-prefix=CHECK-OPT %s
5
5
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
+
3
+ // Cannot use -parse-as-library here because that would compile also the
4
+ // #if VERIFY path, which contains top-level code.
2
5
// RUN: %target-swift-frontend -emit-sil -o - -emit-module-path %t/Lib.swiftmodule -module-name Lib -I %S/Inputs/custom-modules -disable-objc-attr-requires-foundation-module -enable-objc-interop %s | %FileCheck -check-prefix CHECK-VTABLE %s
3
6
4
7
// RUN: %target-swift-ide-test -source-filename=x -print-module -module-to-print Lib -I %t -I %S/Inputs/custom-modules | %FileCheck %s
@@ -23,9 +26,9 @@ import Lib
23
26
// CHECK-SIL-LABEL: sil hidden [ossa] @$s8typedefs11testSymbolsyyF
24
27
func testSymbols( ) {
25
28
// Check that the symbols are not using 'Bool'.
26
- // CHECK-SIL: function_ref @$s3Lib1xs5Int32Vvau
29
+ // CHECK-SIL: global_addr @$s3Lib9usesAssocs5Int32VSgvp
27
30
_ = Lib . x
28
- // CHECK-SIL: function_ref @$s3Lib9usesAssocs5Int32VSgvau
31
+ // CHECK-SIL: global_addr @$s3Lib1xs5Int32Vvp
29
32
_ = Lib . usesAssoc
30
33
} // CHECK-SIL: end sil function '$s8typedefs11testSymbolsyyF'
31
34
You can’t perform that action at this time.
0 commit comments