1 // RUN: %clangxx_asan -O2 %s -o %t
2 // RUN: %run %t 2>&1 | FileCheck %s
3 
4 // FIXME: merge this with the common default_options test when we can run common
5 // tests on Windows.
6 
7 const char *kAsanDefaultOptions="verbosity=1 help=1";
8 
9 extern "C"
10 __attribute__((no_sanitize_address))
__asan_default_options()11 const char *__asan_default_options() {
12   // CHECK: Available flags for AddressSanitizer:
13   return kAsanDefaultOptions;
14 }
15 
main()16 int main() {
17   return 0;
18 }
19