Closed AGPX closed 2 days ago
The following simple code hangs the compiler (with -e):
-e
#include "common.h" int k = 0; int main() { int i; int j; for (i = 0; i < 2; i++) { if (k) { if (j != 2) abort (); } else { j = 2; k++; } } exit (0); }
with common.h:
common.h
#include <stdio.h> #include <string.h> #define register #define double float #define exit return #define __attribute__(x) #define __complex__ static void abort() { printf("** TEST FAILED **!\n"); } static void abort2(const char *msg) { printf("%s\n", msg); printf("** TEST FAILED **!\n"); }
Sorry, was a problem of the test suite, not the compiler. Closed as not applies.
The following simple code hangs the compiler (with
-e
):with
common.h
: