From 8fe317e7faf733ab0bab5168c1e0afb5c3623bfb Mon Sep 17 00:00:00 2001 From: Jesse Rosenstock Date: Tue, 23 Jun 2020 21:57:03 +0200 Subject: [PATCH] Remove REFCC_UNSIGNED_CHARS from test/ref/ Explicitly use signed char or unsigned char for REFCC. --- test/ref/Makefile | 2 +- test/ref/switch2.c | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/test/ref/Makefile b/test/ref/Makefile index 5da21bb92..be9fbed59 100644 --- a/test/ref/Makefile +++ b/test/ref/Makefile @@ -54,7 +54,7 @@ $(WORKDIR): $(WORKDIR)/%.ref: %.c | $(WORKDIR) $(if $(QUIET),echo ref/$*.host) - $(CC) $(CFLAGS) -DREFCC -DREFCC_UNSIGNED_CHARS -o $(WORKDIR)/$*.host $< $(NULLERR) + $(CC) $(CFLAGS) -DREFCC -o $(WORKDIR)/$*.host $< $(NULLERR) $(WORKDIR)$S$*.host > $@ $(DIFF): ../bdiff.c | $(WORKDIR) diff --git a/test/ref/switch2.c b/test/ref/switch2.c index 7884f3722..3b2ab23e6 100644 --- a/test/ref/switch2.c +++ b/test/ref/switch2.c @@ -40,11 +40,7 @@ void testdefault1(unsigned char i) { /* we want a signed char */ #ifdef REFCC -#ifdef REFCC_UNSIGNED_CHARS signed char k; -#else -char k; -#endif #else @@ -145,11 +141,7 @@ void testdefault2(unsigned char i) { /* we want a unsigned char */ #ifdef REFCC -#ifdef REFCC_UNSIGNED_CHARS -char k; -#else unsigned char k; -#endif #else