2 RUN: %cpp_compiler %S/OutOfMemoryTest.cpp -o %t-OutOfMemoryTest
3 RUN: not %t-OutOfMemoryTest -rss_limit_mb=300 2>&1 | FileCheck %s
4 CHECK: ERROR: libFuzzer: out-of-memory (used: {{.*}}; limit: 300Mb)
5 CHECK: Live Heap Allocations
6 CHECK: Test unit written to ./oom-
7 SUMMARY: libFuzzer: out-of-memory