[ORC] Fail materialization in tasks that are destroyed before running.
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Linux / mallopt.cpp
blob37d1ebb11a4c5b39626d8757a6f320fe16bb7baf
1 // Check that mallopt does not return invalid values (ex. -1).
2 // RUN: %clangxx -O2 %s -o %t && %run %t
4 // Investigate why it fails with NDK 21.
5 // UNSUPPORTED: android
7 #include <assert.h>
8 #include <malloc.h>
10 int main() {
11 // Try a random mallopt option, possibly invalid.
12 int res = mallopt(-42, 0);
13 assert(res == 0 || res == 1);