Skip to content

Commit 50caa67

Browse files
committed
readd test cases that had the same name
1 parent 8be55bf commit 50caa67

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
void __attribute__((pcs("aapcs"))) foo1(float *a);
2+
void __attribute__((pcs("aapcs-vfp"))) foo2(float *a);
3+
4+
// translate
5+
// expect=fail
6+
// target=arm-linux-none
7+
//
8+
// pub extern fn foo1(a: [*c]f32) callconv(.{ .arm_aapcs = .{} }) void;
9+
// pub extern fn foo2(a: [*c]f32) callconv(.{ .arm_aapcs_vfp = .{} }) void;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
void __attribute__((fastcall)) foo1(float *a);
2+
void __attribute__((stdcall)) foo2(float *a);
3+
void __attribute__((vectorcall)) foo3(float *a);
4+
void __attribute__((cdecl)) foo4(float *a);
5+
void __attribute__((thiscall)) foo5(float *a);
6+
7+
// translate
8+
// expect=fail
9+
// target=x86-linux-none
10+
//
11+
// pub extern fn foo1(a: [*c]f32) callconv(.{ .x86_fastcall = .{} }) void;
12+
// pub extern fn foo2(a: [*c]f32) callconv(.{ .x86_stdcall = .{} }) void;
13+
// pub extern fn foo3(a: [*c]f32) callconv(.{ .x86_vectorcall = .{} }) void;
14+
// pub extern fn foo4(a: [*c]f32) void;
15+
// pub extern fn foo5(a: [*c]f32) callconv(.{ .x86_thiscall = .{} }) void;

0 commit comments

Comments
 (0)