Skip to content

Commit c1a93e0

Browse files
committed
Move tests over to use the %use_no_opaque_pointers option
1 parent 5d1378d commit c1a93e0

File tree

572 files changed

+1482
-769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

572 files changed

+1482
-769
lines changed

test/AutoDiff/IRGen/differentiable_function.sil

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir %s | %FileCheck %s
2+
// RUN: %target-swift-frontend -emit-ir %s
23

34
sil_stage raw
45

test/AutoDiff/IRGen/runtime.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -parse-stdlib %s -emit-ir | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -parse-stdlib %s -emit-ir | %FileCheck %s
2+
// RUN: %target-swift-frontend -parse-stdlib %s -emit-ir
23

34
import Swift
45
import _Differentiation

test/AutoDiff/IRGen/witness_table_differentiable_requirements.sil

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -parse-sil %s -emit-ir | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -parse-sil %s -emit-ir | %FileCheck %s
2+
// RUN: %target-swift-frontend -parse-sil %s -emit-ir
23
// REQUIRES: CPU=x86_64
34

45
sil_stage canonical

test/AutoDiff/SIL/differentiability_witness_function_inst.sil

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
// IRGen test.
1717

18-
// RUN: %target-swift-frontend -Xllvm -sil-disable-pass=Simplification -emit-ir %s | %FileCheck %s --check-prefix=IRGEN --check-prefix %target-cpu
18+
// RUN: %target-swift-frontend %use_no_opaque_pointers -Xllvm -sil-disable-pass=Simplification -emit-ir %s | %FileCheck %s --check-prefix=IRGEN --check-prefix %target-cpu
19+
// RUN: %target-swift-frontend -Xllvm -sil-disable-pass=Simplification -emit-ir %s
1920
// NOTE: `%target-cpu`-specific FileCheck lines exist because lowered function types in LLVM IR differ between architectures.
2021

2122
// `shell` is required only to run `sed` as a

test/AutoDiff/SIL/differentiable_function_inst.sil

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
// IRGen test.
1717

18-
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s --check-prefix=CHECK-IRGEN
18+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir %s | %FileCheck %s --check-prefix=CHECK-IRGEN
19+
// RUN: %target-swift-frontend -emit-ir %s
1920

2021
// `shell` is required only to run `sed` as a
2122
// https://github.com/apple/swift/issues/54526 workaround.

test/AutoDiff/SIL/sil_differentiability_witness.sil

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
// IRGen test.
1717

18-
// RUN: %target-swift-frontend -emit-ir %s | %FileCheck --check-prefix=IRGEN %s
18+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir %s | %FileCheck --check-prefix=IRGEN %s
19+
// RUN: %target-swift-frontend -emit-ir %s
1920

2021
// `shell` is required only to run `sed` as a
2122
// https://github.com/apple/swift/issues/54526 workaround.

test/AutoDiff/compiler_crashers_fixed/issue-58123-invalid-debug-info.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -emit-ir -O -g %s | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir -O -g %s | %FileCheck %s
2+
// RUN: %target-swift-frontend -emit-ir -O -g %s
23

34
// https://github.com/apple/swift/issues/58123
45
// Mutating functions with control flow can cause assertion failure for

test/ClangImporter/CoreGraphics_test.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -module-name=cgtest -emit-ir -O %s | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -module-name=cgtest -emit-ir -O %s | %FileCheck %s
2+
// RUN: %target-swift-frontend -module-name=cgtest -emit-ir -O %s
23

34
// Test some imported CG APIs
45
import CoreGraphics

test/ClangImporter/MixedSource/forward-declarations.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/forward-declarations-other.swift -import-objc-header %S/Inputs/forward-declarations.h -enable-objc-interop -disable-objc-attr-requires-foundation-module -module-name main | %FileCheck %s
1+
// RUN: %target-swift-frontend %use_no_opaque_pointers -emit-ir -primary-file %s %S/Inputs/forward-declarations-other.swift -import-objc-header %S/Inputs/forward-declarations.h -enable-objc-interop -disable-objc-attr-requires-foundation-module -module-name main | %FileCheck %s
2+
// RUN: %target-swift-frontend -emit-ir -primary-file %s %S/Inputs/forward-declarations-other.swift -import-objc-header %S/Inputs/forward-declarations.h -enable-objc-interop -disable-objc-attr-requires-foundation-module -module-name main
23

34
class Sub: Base {
45
// CHECK-LABEL: define{{.*}} void @"$s4main3SubC4testyyF"
@@ -13,4 +14,4 @@ class Sub: Base {
1314
// CHECK: call void @swift_release(%swift.refcounted* {{%.+}})
1415
// CHECK: ret void
1516
}
16-
}
17+
}

test/ClangImporter/cxx_interop_ir.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// RUN: %target-swiftxx-frontend -module-name cxx_ir -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s -Xcc -fignore-exceptions | %FileCheck %s
1+
// RUN: %target-swiftxx-frontend %use_no_opaque_pointers -module-name cxx_ir -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s -Xcc -fignore-exceptions | %FileCheck %s
2+
// RUN: %target-swiftxx-frontend -module-name cxx_ir -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s -Xcc -fignore-exceptions
23

34
// https://github.com/apple/swift/issues/55575
45
// We can't yet call member functions correctly on Windows.

0 commit comments

Comments
 (0)