aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
-rw-r--r--validation/calling-convention-attributes.c28
1 files changed, 22 insertions, 6 deletions
diff --git a/validation/calling-convention-attributes.c b/validation/calling-convention-attributes.c
index 1bbe575c..7168429c 100644
--- a/validation/calling-convention-attributes.c
+++ b/validation/calling-convention-attributes.c
@@ -1,7 +1,23 @@
-extern void __attribute__((cdecl)) f1(void);
-extern void __attribute__((__cdecl__)) f2(void);
-extern void __attribute__((stdcall)) f3(void);
-extern void __attribute__((__stdcall__)) f4(void);
+extern void __attribute__((cdecl)) c1(void);
+typedef void (__attribute__((cdecl)) *c2)(void);
+typedef c2 c2ptr;
-typedef void (__attribute__((__stdcall__)) *f5)(void);
-typedef f5 f5ptr;
+extern void __attribute__((__cdecl__)) c_1(void);
+typedef void (__attribute__((__cdecl__)) *c_2)(void);
+typedef c_2 c_2ptr;
+
+extern void __attribute__((stdcall)) s1(void);
+typedef void (__attribute__((stdcall)) *s2)(void);
+typedef s2 s2ptr;
+
+extern void __attribute__((__stdcall__)) s_1(void);
+typedef void (__attribute__((__stdcall__)) *s_2)(void);
+typedef s_2 s_2ptr;
+
+extern void __attribute__((fastcall)) f1(void);
+typedef void (__attribute__((fastcall)) *f2)(void);
+typedef f2 f2ptr;
+
+extern void __attribute__((__fastcall__)) f_1(void);
+typedef void (__attribute__((__fastcall__)) *f_2)(void);
+typedef f_2 f_2ptr;