diff --git a/test/ref/Makefile b/test/ref/Makefile index be9fbed59..5f0b86164 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 -o $(WORKDIR)/$*.host $< $(NULLERR) + $(CC) $(CFLAGS) -o $(WORKDIR)/$*.host $< $(NULLERR) $(WORKDIR)$S$*.host > $@ $(DIFF): ../bdiff.c | $(WORKDIR) diff --git a/test/ref/switch2.c b/test/ref/switch2.c index 3b2ab23e6..78d383b52 100644 --- a/test/ref/switch2.c +++ b/test/ref/switch2.c @@ -37,20 +37,8 @@ void testlimits(int i) { } void testdefault1(unsigned char i) { -/* we want a signed char */ -#ifdef REFCC -signed char k; - -#else - -#ifdef UNSIGNED_CHARS -signed char k; -#else -char k; -#endif - -#endif + signed char k; for(;i<254;) { k = i; @@ -138,20 +126,8 @@ char k; } void testdefault2(unsigned char i) { -/* we want a unsigned char */ -#ifdef REFCC -unsigned char k; - -#else - -#ifdef UNSIGNED_CHARS -char k; -#else -unsigned char k; -#endif - -#endif + unsigned char k; for(;i<254;) { k = i;