-
Basile Desloges authored
The following tests failed on CI due to Nix's GCC hardening: - `bts/bts1398.c` - `full-mmodel/addrOf.i` - `memory/constructor.c` - `memory/hidden_malloc.c` - `memory/local_goto.c` They have been reactivated in this commit.
Basile Desloges authoredThe following tests failed on CI due to Nix's GCC hardening: - `bts/bts1398.c` - `full-mmodel/addrOf.i` - `memory/constructor.c` - `memory/hidden_malloc.c` - `memory/local_goto.c` They have been reactivated in this commit.
constructor.c 304 B
/* run.config_ci
COMMENT: bts #2405. Memory not initialized for code executed before main.
*/
#include <stdio.h>
#include <stdlib.h>
__attribute__((constructor))
void f() {
printf("f\n");
char *buf = (char*)malloc(10*sizeof(char));
free(buf);
}
int main() {
printf("main\n");
return 0;
}