xref: /aosp_15_r20/external/compiler-rt/test/asan/TestCases/default_options.cc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1*7c3d14c8STreehugger Robot // RUN: %clangxx_asan -O2 %s -o %t
2*7c3d14c8STreehugger Robot // RUN: %run %t 2>&1 | FileCheck %s
3*7c3d14c8STreehugger Robot 
4*7c3d14c8STreehugger Robot const char *kAsanDefaultOptions="verbosity=1 help=1";
5*7c3d14c8STreehugger Robot 
6*7c3d14c8STreehugger Robot extern "C"
7*7c3d14c8STreehugger Robot __attribute__((no_sanitize_address))
__asan_default_options()8*7c3d14c8STreehugger Robot const char *__asan_default_options() {
9*7c3d14c8STreehugger Robot   // CHECK: Available flags for AddressSanitizer:
10*7c3d14c8STreehugger Robot   return kAsanDefaultOptions;
11*7c3d14c8STreehugger Robot }
12*7c3d14c8STreehugger Robot 
main()13*7c3d14c8STreehugger Robot int main() {
14*7c3d14c8STreehugger Robot   return 0;
15*7c3d14c8STreehugger Robot }
16