1 // Check that sanitizers call _exit() on Linux by default (i.e. 2 // abort_on_error=0). See also Darwin/abort_on_error.cc. 3 4 // RUN: %clangxx %s -o %t 5 6 // Intentionally don't inherit the default options. 7 // RUN: env %tool_options='' not %run %t 2>&1 8 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 12 13 namespace __sanitizer { 14 void Die(); 15 } 16 17 int main() { 18 __sanitizer::Die(); 19 return 0; 20 } 21