fix: previous two commits

This commit is contained in:
Jonathan M. Wilbur
2024-07-31 04:15:45 -04:00
parent e4d874d88a
commit f15008da05
7 changed files with 12 additions and 32 deletions

View File

@@ -0,0 +1 @@
AAAAAAAAA

View File

@@ -1,3 +1,5 @@
#include <stdio.h>
/* Previously in TinyCC, ELF sections defined in attributes would always have
the execute bit not set, so you would get segmentation faults when code in these
sections was exectuted. This file is a minimal example of a file that will put
@@ -9,5 +11,7 @@ int wumbo (int arg) {
}
int main () {
return wumbo(2);
wumbo(2);
puts("hi");
return 0;
}

View File

@@ -0,0 +1 @@
hi

View File

@@ -1,13 +0,0 @@
int main () {
// This used to evaluate to 0 (0), which is invalid.
// Now it should evaluate to 0.
#if WUMBOED(WUMBO)
#endif
// Just trying a more complicated test case.
#if WUMBO && defined(WUMBOLOGY) || WUMBOED(WUMBO) && !WUMBOLOGY
return 0;
#elif WUMBO && defined(WUMBOLOGY) || WUMBOED(WUMBO) && !WUMBOLOGY
return 1;
#endif
}