Browse Source

cppmagic: Tweak testcase to work on older clang versions

clang version 3.4, for whatever reason, expands a few of the testcases
in cppmagic with slightly different whitespace from what we expect.  Since
this was changed in later clang versions, it was probably a compiler bug,
but it turns out an extra space in the testcase can make it pass on clang
3.4 as well.  This means we finally have clang builds working in Travis.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
David Gibson 9 years ago
parent
commit
adaf79a8ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ccan/cppmagic/test/run.c

+ 1 - 1
ccan/cppmagic/test/run.c

@@ -15,7 +15,7 @@ static inline void check1(const char *orig, const char *expand,
 #define CHECK1(orig, match) \
 #define CHECK1(orig, match) \
 	check1(#orig, CPPMAGIC_STRINGIFY(orig), match)
 	check1(#orig, CPPMAGIC_STRINGIFY(orig), match)
 
 
-#define TESTRECURSE()	R CPPMAGIC_DEFER1(_TESTRECURSE)()()
+#define TESTRECURSE()	R CPPMAGIC_DEFER1(_TESTRECURSE) ()()
 #define _TESTRECURSE()	TESTRECURSE
 #define _TESTRECURSE()	TESTRECURSE
 
 
 #define TESTMAP1(x)	<<x>>
 #define TESTMAP1(x)	<<x>>