From 2f764cc01a7d043ad2cd938f0ca4c94d37bee1e5 Mon Sep 17 00:00:00 2001
From: Virgile Prevosto <virgile.prevosto@m4x.org>
Date: Fri, 17 Feb 2023 16:44:17 +0100
Subject: [PATCH] [machdep] use markdown backtick to delimit typenames in tests

Workaround odd gcc behavior in which `'` gets escaped as `\'` in diagnostic
---
 share/machdeps/make_machdep/make_machdep.py       | 2 +-
 share/machdeps/make_machdep/make_machdep_common.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/machdeps/make_machdep/make_machdep.py b/share/machdeps/make_machdep/make_machdep.py
index 97aa2901b0a..f3e922f099c 100755
--- a/share/machdeps/make_machdep/make_machdep.py
+++ b/share/machdeps/make_machdep/make_machdep.py
@@ -191,7 +191,7 @@ def find_value(name, typ, output):
             return int(x)
 
     elif typ == "type":
-        expected = "'([^']+)'"
+        expected = "`([^`]+)`"
 
         def conversion(x):
             return x
diff --git a/share/machdeps/make_machdep/make_machdep_common.h b/share/machdeps/make_machdep/make_machdep_common.h
index 729a741947e..8688084e084 100644
--- a/share/machdeps/make_machdep/make_machdep_common.h
+++ b/share/machdeps/make_machdep/make_machdep_common.h
@@ -39,6 +39,6 @@
 #define mkstr(s) #s
 
 #define TEST_TYPE_COMPATIBLE(T1, T2)                                           \
-  _Static_assert(!COMPATIBLE(T1, T2), "" mkstr(T2) " is '" #T1 "'");
+  _Static_assert(!COMPATIBLE(T1, T2), "" mkstr(T2) " is `" #T1 "`");
 
 #define TEST_TYPE_IS(type) TEST_TYPE_COMPATIBLE(type, TEST_TYPE)
-- 
GitLab