Home | History | Annotate | Download | only in TestCases
      1 // RUN: %clangxx_asan -O2 %s -o %t
      2 // RUN: %run %t 2>&1 | FileCheck %s
      3 
      4 // __asan_default_options() are not supported on Windows.
      5 // XFAIL: win32
      6 
      7 const char *kAsanDefaultOptions="verbosity=1 foo=bar";
      8 
      9 extern "C"
     10 __attribute__((no_sanitize_address))
     11 const char *__asan_default_options() {
     12   // CHECK: Using the defaults from __asan_default_options: {{.*}} foo=bar
     13   return kAsanDefaultOptions;
     14 }
     15 
     16 int main() {
     17   return 0;
     18 }
     19