[ORC] Fail materialization in tasks that are destroyed before running.
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Linux / assert.cpp
blob2a73c508844bbf116abf336a48afd7482390e210
1 // Test the handle_abort option.
3 // RUN: %clangxx %s -o %t
4 // RUN: not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s
5 // RUN: %env_tool_opts=handle_abort=0 not --crash %run %t 2>&1 | FileCheck --check-prefix=CHECK0 %s
6 // RUN: %env_tool_opts=handle_abort=1 not %run %t 2>&1 | FileCheck --check-prefix=CHECK1 %s
8 #include <assert.h>
9 #include <stdio.h>
10 #include <sanitizer/asan_interface.h>
12 void death() {
13 fprintf(stderr, "DEATH CALLBACK\n");
16 int main(int argc, char **argv) {
17 __sanitizer_set_death_callback(death);
18 assert(argc == 100);
21 // CHECK0-NOT: Sanitizer:DEADLYSIGNAL
22 // CHECK1: ERROR: {{.*}}Sanitizer: ABRT
23 // CHECK1: {{ #0 }}
24 // CHECK1: DEATH CALLBACK
25 // CHECK0-NOT: Sanitizer