summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorRuss Keldorph <russ.keldorph@microsoft.com>2016-04-14 07:10:24 -0700
committerRuss Keldorph <russ.keldorph@microsoft.com>2016-04-14 07:10:24 -0700
commitaf0a58fb1d34ba27b7b761d71316a2c2d0361a0f (patch)
tree043c412666c896a6500a11503426d22729322313 /tests/src
parentbd7ee6206f05fbc321e7f69383423f05d440e7b6 (diff)
parent7c512edb6008675ff1db320dbefe43c287c423dd (diff)
downloadcoreclr-af0a58fb1d34ba27b7b761d71316a2c2d0361a0f.tar.gz
coreclr-af0a58fb1d34ba27b7b761d71316a2c2d0361a0f.tar.bz2
coreclr-af0a58fb1d34ba27b7b761d71316a2c2d0361a0f.zip
Merge pull request #4327 from RussKeldorph/structinregs
Fix structinregs test on x86
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/JIT/Methodical/structs/systemvbringup/structinregs.cpp60
1 files changed, 30 insertions, 30 deletions
diff --git a/tests/src/JIT/Methodical/structs/systemvbringup/structinregs.cpp b/tests/src/JIT/Methodical/structs/systemvbringup/structinregs.cpp
index 2fa30eb5c1..df4a091acb 100644
--- a/tests/src/JIT/Methodical/structs/systemvbringup/structinregs.cpp
+++ b/tests/src/JIT/Methodical/structs/systemvbringup/structinregs.cpp
@@ -1,18 +1,18 @@
#include <stdio.h>
-#ifdef __clang__
+#if defined(__clang__)
#define EXPORT(type) __attribute__((visibility("default"))) extern "C" type
-#else
+#else // defined(__clang__)
#define EXPORT(type) type
-#endif
+#endif // !defined(__clang__)
-#ifndef _MSCVER
+#if !defined(_MSC_VER)
#if __i386__
#define __stdcall __attribute__((stdcall))
-#else
+#else // __i386__
#define __stdcall
-#endif
-#endif
+#endif // !__i386__
+#endif // !defined(_MSC_VER)
typedef unsigned char byte;
@@ -191,29 +191,29 @@ struct S30
long long y;
};
-typedef void* (__stdcall *PFNACTION1)(S1 s);
-typedef void* (__stdcall *PFNACTION2)(S2 s);
-typedef void* (__stdcall *PFNACTION3)(S3 s);
-typedef void* (__stdcall *PFNACTION4)(S4 s);
-typedef void* (__stdcall *PFNACTION5)(S5 s);
-typedef void* (__stdcall *PFNACTION6)(S6 s);
-typedef void* (__stdcall *PFNACTION7)(S7 s);
-typedef void* (__stdcall *PFNACTION8)(S8 s);
-typedef void* (__stdcall *PFNACTION9)(S9 s);
-typedef void* (__stdcall *PFNACTION10)(S10 s);
-typedef void* (__stdcall *PFNACTION11)(S11 s);
-typedef void* (__stdcall *PFNACTION12)(S12 s);
-typedef void* (__stdcall *PFNACTION13)(S13 s);
-typedef void* (__stdcall *PFNACTION14)(S14 s);
-typedef void* (__stdcall *PFNACTION15)(S15 s);
-typedef void* (__stdcall *PFNACTION16)(S16 s);
-typedef void* (__stdcall *PFNACTION17)(S17 s);
-typedef void* (__stdcall *PFNACTION18)(S18 s);
-typedef void* (__stdcall *PFNACTION19)(S19 s);
-typedef void* (__stdcall *PFNACTION20)(S20 s);
-
-typedef void* (__stdcall *PFNACTION28)(S28 s);
-typedef void* (__stdcall *PFNACTION29)(S29 s);
+typedef void (__stdcall *PFNACTION1)(S1 s);
+typedef void (__stdcall *PFNACTION2)(S2 s);
+typedef void (__stdcall *PFNACTION3)(S3 s);
+typedef void (__stdcall *PFNACTION4)(S4 s);
+typedef void (__stdcall *PFNACTION5)(S5 s);
+typedef void (__stdcall *PFNACTION6)(S6 s);
+typedef void (__stdcall *PFNACTION7)(S7 s);
+typedef void (__stdcall *PFNACTION8)(S8 s);
+typedef void (__stdcall *PFNACTION9)(S9 s);
+typedef void (__stdcall *PFNACTION10)(S10 s);
+typedef void (__stdcall *PFNACTION11)(S11 s);
+typedef void (__stdcall *PFNACTION12)(S12 s);
+typedef void (__stdcall *PFNACTION13)(S13 s);
+typedef void (__stdcall *PFNACTION14)(S14 s);
+typedef void (__stdcall *PFNACTION15)(S15 s);
+typedef void (__stdcall *PFNACTION16)(S16 s);
+typedef void (__stdcall *PFNACTION17)(S17 s);
+typedef void (__stdcall *PFNACTION18)(S18 s);
+typedef void (__stdcall *PFNACTION19)(S19 s);
+typedef void (__stdcall *PFNACTION20)(S20 s);
+
+typedef void (__stdcall *PFNACTION28)(S28 s);
+typedef void (__stdcall *PFNACTION29)(S29 s);
typedef void (__stdcall *PFNACTION30)(S30 s1, S30 s2, S30 s3);
EXPORT(void) __stdcall InvokeCallback1(PFNACTION1 callback, S1 s)