Skip to content

testsuite: Adds test from issue 1245#4369

Merged
P-E-P merged 1 commit intoRust-GCC:masterfrom
Villosse:1245
Jan 12, 2026
Merged

testsuite: Adds test from issue 1245#4369
P-E-P merged 1 commit intoRust-GCC:masterfrom
Villosse:1245

Conversation

@Villosse
Copy link
Contributor

@Villosse Villosse commented Jan 8, 2026

Fixes #1245

As the issue as already been solved, i added the test from the issue.

The issue can be closed.

let b = a as *const str;
let c = b as *const i8;
unsafe {
printf(c);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need to put this within the execute directory and match the output to ensure the minus is indeed kept correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done !
Waiting for pipeline to pass

Should I keep the first commit or not ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably squash them together

Added the test from the issue 1245.

Fixes GCC-Rust/gccrs#1245

gcc/testsuite/ChangeLog:

	* rust/execute/issue-1245.rs: New test.

Signed-off-by: lenny.chiadmi-delage <lenny.chiadmi-delage@epita.fr>
@P-E-P P-E-P added this pull request to the merge queue Jan 12, 2026
Merged via the queue into Rust-GCC:master with commit 6f92d79 Jan 12, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

LiteralPatterns lose their minus prefix

3 participants