Skip to content

Commit f1498aa

Browse files
committed
Fix tests
1 parent add7a6a commit f1498aa

12 files changed

+1649
-1511
lines changed

test/DebugInfo/dbgvalue-insertpt.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ for i in 0 ..< 3 {
66
// CHECK-NEXT: call void @llvm.dbg.declare(metadata i{{32|64}}* %i.addr,
77
// CHECK-SAME: metadata ![[I:[0-9]+]],
88
// CHECK: %[[CAST:[0-9]+]] = bitcast %TSiSg* %[[ALLOCA]] to i{{32|64}}*
9+
// CHECK: %[[CAST:[0-9]+]] = bitcast %TSiSg* %[[ALLOCA]] to i{{32|64}}*
910
// CHECK: %[[LD:[0-9]+]] = load i{{32|64}}, i{{32|64}}* %[[CAST]]
1011
// CHECK: br i1 {{%.*}}, label %[[FAIL:.*]], label %[[SUCCESS:.*]],
1112
//

test/IDE/Inputs/foo_swift_module.printed.comments.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import SwiftOnoneSupport
12

23
precedencegroup High {
34
associativity: left

test/IRGen/sanitize_coverage.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99

1010
import Darwin
1111

12+
class Foo {
13+
func bar() {
14+
print("foobar")
15+
}
16+
}
1217
// FIXME: We should have a reliable way of triggering an indirect call in the
1318
// LLVM IR generated from this code.
1419
func test() {
@@ -18,6 +23,9 @@ func test() {
1823
// Comparison is to trigger insertion of __sanitizer_cov_trace_cmp
1924
let z = x == y
2025
print("\(z)")
26+
// Trigger an indirect call.
27+
let foo = Foo()
28+
foo.bar()
2129
}
2230

2331
test()

0 commit comments

Comments
 (0)