Skip to content

Commit 4469b06

Browse files
[test] Adjust IRGen tests to be ptr size agnostic
1 parent bfb36e4 commit 4469b06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/IRGen/simple_partial_apply_or_not.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct State<T> {
2323
}
2424

2525
struct S {
26-
@State var value: Int = 1
26+
@State var value: Int64 = 1
2727

2828
init() {
2929
value = 10 // CRASH
@@ -39,10 +39,10 @@ print(s)
3939
// the method of this self type (struct S) does not.
4040

4141
// CHECK: define {{.*}}swiftcc ptr @"$s4test1SVACycfC"()
42-
// CHECK: [[RES:%.*]] = call swiftcc ptr @"$s4test1SV5valueSivpfP"(i64 1)
42+
// CHECK: [[RES:%.*]] = call swiftcc ptr @"$s4test1SV5values5Int64VvpfP"(i64 1)
4343
// CHECK: ret ptr [[RES]]
4444

4545
// This used to crash.
4646

4747
// CHECK-EXEC: Hello!
48-
// CHECK-EXEC: S(_value: main.State<Swift.Int>(ref: main.State<Swift.Int>.(unknown context at {{.*}}).Reference))
48+
// CHECK-EXEC: S(_value: main.State<Swift.Int64>(ref: main.State<Swift.Int64>.(unknown context at {{.*}}).Reference))

0 commit comments

Comments
 (0)