Skip to content

Commit

Permalink
readd test cases that had the same name
Browse files Browse the repository at this point in the history
  • Loading branch information
Vexu committed Nov 18, 2024
1 parent 8be55bf commit 50caa67
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
File renamed without changes.
9 changes: 9 additions & 0 deletions test/cases/translate/Calling_convention_arm.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
void __attribute__((pcs("aapcs"))) foo1(float *a);
void __attribute__((pcs("aapcs-vfp"))) foo2(float *a);

// translate
// expect=fail
// target=arm-linux-none
//
// pub extern fn foo1(a: [*c]f32) callconv(.{ .arm_aapcs = .{} }) void;
// pub extern fn foo2(a: [*c]f32) callconv(.{ .arm_aapcs_vfp = .{} }) void;
15 changes: 15 additions & 0 deletions test/cases/translate/Calling_convention_x86.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
void __attribute__((fastcall)) foo1(float *a);
void __attribute__((stdcall)) foo2(float *a);
void __attribute__((vectorcall)) foo3(float *a);
void __attribute__((cdecl)) foo4(float *a);
void __attribute__((thiscall)) foo5(float *a);

// translate
// expect=fail
// target=x86-linux-none
//
// pub extern fn foo1(a: [*c]f32) callconv(.{ .x86_fastcall = .{} }) void;
// pub extern fn foo2(a: [*c]f32) callconv(.{ .x86_stdcall = .{} }) void;
// pub extern fn foo3(a: [*c]f32) callconv(.{ .x86_vectorcall = .{} }) void;
// pub extern fn foo4(a: [*c]f32) void;
// pub extern fn foo5(a: [*c]f32) callconv(.{ .x86_thiscall = .{} }) void;

0 comments on commit 50caa67

Please sign in to comment.