forked from OSchip/llvm-project
19 lines
427 B
C++
19 lines
427 B
C++
|
// RUN: %clangxx_asan -O2 %s -o %t
|
||
|
// RUN: %run %t 2>&1 | FileCheck %s
|
||
|
|
||
|
// FIXME: merge this with the common default_options test when we can run common
|
||
|
// tests on Windows.
|
||
|
|
||
|
const char *kAsanDefaultOptions="verbosity=1 help=1";
|
||
|
|
||
|
extern "C"
|
||
|
__attribute__((no_sanitize_address))
|
||
|
const char *__asan_default_options() {
|
||
|
// CHECK: Available flags for AddressSanitizer:
|
||
|
return kAsanDefaultOptions;
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
return 0;
|
||
|
}
|