Add more codegen tests
This commit is contained in:
parent
af23ad93cd
commit
f1255380ac
26 changed files with 166 additions and 139 deletions
|
@ -1,4 +1,4 @@
|
|||
// compile-flags: --crate-type=rlib
|
||||
// compile-flags: --crate-type=rlib -Copt-level=0
|
||||
// revisions: aarch64-apple aarch64-linux force x64-apple x64-linux
|
||||
// [aarch64-apple] needs-llvm-components: aarch64
|
||||
// [aarch64-apple] compile-flags: --target=aarch64-apple-darwin
|
||||
|
@ -20,7 +20,7 @@ trait Copy { }
|
|||
impl Copy for u32 {}
|
||||
|
||||
|
||||
// CHECK: define noundef i32 @peach{{.*}}[[PEACH_ATTRS:\#[0-9]+]] {
|
||||
// CHECK: define i32 @peach{{.*}}[[PEACH_ATTRS:\#[0-9]+]] {
|
||||
#[no_mangle]
|
||||
pub fn peach(x: u32) -> u32 {
|
||||
x
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue