Skip to content

[test] Adjust IRGen tests to be ptr size agnostic #69348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/IRGen/simple_partial_apply_or_not.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct State<T> {
}

struct S {
@State var value: Int = 1
@State var value: Int64 = 1

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

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

// This used to crash.

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