Skip to content
Snippets Groups Projects
Unverified Commit b77c87b4 authored by Benjamin Swart's avatar Benjamin Swart Committed by GitHub
Browse files

Make oom-heap.c test work with newer GCC (#1210)

New GCC versions can optimize the old version of the test to use
practically zero memory
parent 1e0df351
Branches
No related tags found
No related merge requests found
#include <stdio.h>
#include <stdlib.h>
int main() {
int *big;
int main() {
int i;
big = malloc(128 * 1024 * 1024);
// If we don't do this cycle, the compiler is smart enough not to
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment