Rollup merge of #82799 - bugadani:codegen-tests, r=nagisa
Rollup merge of #82799 - bugadani:codegen-tests, r=nagisa

Add regression test for #75525

graydon/rust,graydon/rust,aidancully/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,graydon/rust,aidancully/rust