blob: 7e444c2103ee9aa688d20d2e164ae386df618342 [file] [log] [blame]
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -08001// 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: %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
13namespace __sanitizer {
14void Die();
15}
16
17int main() {
18 __sanitizer::Die();
19 return 0;
20}