1// RUN: %clangxx_asan -O2 %s -o %t
2// RUN: %run %t 2>&1 | FileCheck %s
3
4#include "defines.h"
5
6const char *kAsanDefaultOptions = "verbosity=1 help=1";
7// Required for dyld macOS 12.0+
8#if (__APPLE__)
9__attribute__((weak))
10#endif
11ATTRIBUTE_NO_SANITIZE_ADDRESS extern "C" const char *
12__asan_default_options() {
13 // CHECK: Available flags for AddressSanitizer:
14 return kAsanDefaultOptions;
15}
16
17int main() {
18 return 0;
19}
20

Provided by KDAB

Privacy Policy
Improve your Profiling and Debugging skills
Find out more

source code of compiler-rt/test/asan/TestCases/default_options.cpp