[LLVM][NVPTX] Add support for griddepcontrol instruction (#123511)
[llvm-project.git] / compiler-rt / test / sanitizer_common / TestCases / Linux / abort_on_error.cpp
blobd667abcf22b0922c76b9ede4b12a4ae8682607cb
1 // Check that sanitizers call _exit() on Linux by default (i.e.
2 // abort_on_error=0). See also Darwin/abort_on_error.cpp.
4 // RUN: %clangxx %s -o %t
6 // Intentionally don't inherit the default options.
7 // RUN: env %tool_options='' not %run %t 2>&1
9 // When we use lit's default options, we shouldn't crash either. On Linux
10 // lit doesn't set options anyway.
11 // RUN: not %run %t 2>&1
13 // Android needs abort_on_error=0
14 // UNSUPPORTED: android
16 namespace __sanitizer {
17 void Die();
20 int main() {
21 __sanitizer::Die();
22 return 0;