aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/alias.c
diff options
context:
space:
mode:
authorXavier Leroy <xavier.leroy@college-de-france.fr>2022-07-05 15:36:05 +0200
committerXavier Leroy <xavier.leroy@college-de-france.fr>2022-07-05 15:36:05 +0200
commit26d1e281541d8522665fe4f9ee905e49ed9baacf (patch)
tree862d28f6fba81a55db76d4da60a55df1e6db2f05 /test/regression/alias.c
parent353669f8f175adabf878be0334a1979c439778af (diff)
downloadcompcert-26d1e281541d8522665fe4f9ee905e49ed9baacf.tar.gz
compcert-26d1e281541d8522665fe4f9ee905e49ed9baacf.zip
In test/regression: Use `static inline` instead of `inline`
Fixes: #441
Diffstat (limited to 'test/regression/alias.c')
-rw-r--r--test/regression/alias.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/regression/alias.c b/test/regression/alias.c
index 925979cb..7ee2a1ea 100644
--- a/test/regression/alias.c
+++ b/test/regression/alias.c
@@ -72,7 +72,7 @@ int get4(void)
/* Byte-swapping a pointer. For 32/64 bit compatibility, we just swap
the two low bytes, but that's in the spirit. */
-inline uintptr_t bswap(uintptr_t x)
+static inline uintptr_t bswap(uintptr_t x)
{
return (x & ~((uintptr_t) 0xFFFF))
| ((x >> 8) & 0xFF)